Xfce: Difference between revisions
Add xfconf and Home Manager usage |
m style fixes |
||
| Line 27: | Line 27: | ||
=== Excluding xfce applications === | === Excluding xfce applications === | ||
Xfce does not include as many applications by default as some other desktop environments. Still, those can be excluded as demonstrated in the example below. Place this before the <code>services.xserver</code> snippet from above. | Xfce does not include as many applications by default as some other desktop environments. Still, those can be excluded as demonstrated in the example below. Place this before the <code>services.xserver</code> snippet from above. | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix| | ||
| Line 123: | Line 124: | ||
{{file|~/.xmonad/xmonad.hs|haskell| | {{file|~/.xmonad/xmonad.hs|haskell| | ||
<nowiki> | <nowiki> | ||
import XMonad | |||
import XMonad.Config.Xfce | |||
main = xmonad xfceConfig | |||
{ terminal = "xfce4-terminal" | |||
, modMask = mod4Mask -- optional: use Win key instead of Alt as MODi key | |||
} | |||
</nowiki> | </nowiki> | ||
}} | }} | ||
| Line 153: | Line 154: | ||
{{file|~/.xmonad/xmonad.hs|haskell| | {{file|~/.xmonad/xmonad.hs|haskell| | ||
<nowiki> | <nowiki> | ||
import XMonad | |||
import XMonad.Config.Xfce | |||
import XMonad.Hooks.EwmhDesktops | |||
import XMonad.Hooks.SetWMName | |||
main = xmonad xfceConfig | |||
{ terminal = "xfce4-terminal" | |||
, modMask = mod4Mask -- Use Win as MOD key | |||
, startupHook = ewmhDesktopsStartup >> setWMName "LG3D" -- for some reason the double greater sign is escaped here due to wiki formatting, replace this with proper greater signs! | |||
} | |||
</nowiki> | </nowiki> | ||
}} | }} | ||
| Line 190: | Line 191: | ||
Launching <code>xfce4-settings-editor</code> you can view xfce personalizations already applied to the system. They're displayed in a tree view, but stored in a flat string format. You can query these same values from the command line with <code>xfconf-query</code> to quickly get the full key and value in a friendlier format. For instance: | Launching <code>xfce4-settings-editor</code> you can view xfce personalizations already applied to the system. They're displayed in a tree view, but stored in a flat string format. You can query these same values from the command line with <code>xfconf-query</code> to quickly get the full key and value in a friendlier format. For instance: | ||
<syntaxhighlight lang=console> | |||
< | |||
$ xfconf-query -c ristretto -lv | $ xfconf-query -c ristretto -lv | ||
/window/navigationbar/position left | /window/navigationbar/position left | ||
/window/statusbar/show true | /window/statusbar/show true | ||
/window/toolbar/show false | /window/toolbar/show false | ||
</ | </syntaxhighlight> | ||
Can be translated like so: | Can be translated like so: | ||