git clone git@github.com:va1entin/arch-config.git
cd arch-config
./setup-zsh.sh
./setup-zshrc.sh
./install-pkgs.sh
./setup-timers.sh
./setup-bootctl.sh
./setup-configs.sh
./setup-syncthing.sh
# ./setup-teamviewer.shsudo cp ~/Sync/Wallpaper/1596997155092.jpg /usr/share/backgrounds/xfce/
sudo chown root:root /usr/share/backgrounds/xfce/1596997155092.jpg
sudo cp configs/slick-greeter.conf /etc/lightdm/
sudo chown root:root /etc/lightdm/slick-greeter.confAdd to /etc/lightdm/slick-greeter.conf
[Greeter]
enable-hidpi=on
See Arch wiki
Open Settings Manager and apply the following settings in respective categories or run xfconf-query commands where applicable.
Keyboard -> Application Shortcuts
Add shortcut for Super L with command: xfce4-appfinder (no collapsed mode)
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/Super_L" -t "string" -s "xfce4-appfinder" -n
xfconf-query -c xfce4-appfinder -p /close-on-focus-lost -t "bool" -s "true" -n
xfconf-query -c xfce4-appfinder -p /hide-window-decorations -t "bool" -s "true" -nDisable default desktop icons
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-home -t "bool" -s "false" -n
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-filesystem -t "bool" -s "false" -n
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-trash -t "bool" -s "false" -n
xfconf-query -c xfce4-desktop -p /desktop-icons/file-icons/show-removable -t "bool" -s "false" -nhttps://wiki.archlinux.org/title/HiDPI#Xfce https://wiki.archlinux.org/title/HiDPI#Qt_5
Display -> General
Set scale to "custom: 1.2"
xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2
xfconf-query -c xfwm4 -p /general/theme -s Default-xhdpi
xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s 42
sudo echo "QT_FONT_DPI=192" >> /etc/environmentDisplay -> Advanced -> Connecting Displays
"When new displays are connected": "Do nothing"
-> Otherwise the display dialogue will open every time the screen turns off while XFCE is running (on every lockscreen basically) and reset scale to 1
To enable <, > and | symbols on Ctrl+i, o and p for QWERTY keyboards with German layout on X11:
yay -S xdotool
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>i" -t "string" -s "sh -c 'sleep 0.2 ; xdotool type \"<\"'" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>o" -t "string" -s "sh -c 'sleep 0.2 ; xdotool type \">\"'" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary>p" -t "string" -s "sh -c 'sleep 0.2 ; xdotool type \"|\"'" -nFor Wayland see wtype or the Arch wiki.
Keyboard -> Application Shortcuts
Add shortcut for Ctrl+Shift+L and Ctrl+Alt+L with command: xflock4
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary><Shift>l" -t "string" -s "xflock4" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Primary><Alt>l" -t "string" -s "xflock4" -nDisable automatic lock screen and screensaver
xfconf-query -c xfce4-power-manager -p "/xfce4-power-manager/lock-screen-suspend-hibernate" -t "bool" -s "false" -n
xfconf-query -c xfce4-power-manager -p "/xfce4-power-manager/dpms-enabled" -t "bool" -s "false" -n
xfconf-query -c xfce4-screensaver -p "/saver/idle-activation/enabled" -t "bool" -s "false" -nMouse and Touchpad -> Theme
Set theme Adwaita
xfconf-query -c xsettings -p /Gtk/CursorThemeName -s AdwaitaTheme tab
Increase size, then decrease to 16 again
View -> Colour Scheme -> Select Oblivion
Settings Editor -> night-mode (channel only appeared at some point after genmon and redshift were set up, not sure why)
Dark
GtkTheme: Arc-Dark
IconTheme: Arc-X-P
Light
GtkTheme: Arc
IconTheme: Arc-X-D
xfconf-query -c night-mode -p /Dark/GtkTheme -t "string" -s "Arc-Dark" -n
xfconf-query -c night-mode -p /Dark/IconTheme -t "string" -s "Arc-X-P" -n
xfconf-query -c night-mode -p /Light/GtkTheme -t "string" -s "Arc" -n
xfconf-query -c night-mode -p /Light/IconTheme -t "string" -s "Arc-X-D" -nRun setup-redshift.sh
Make sure redshift is working by running redshift -p and then follow instructions for Night mode
General tab
Fade out: Yes
Slide out: Yes
Appearance tab
Default position: Bottom left
Opacity: 100%
Disappear after: 10 seconds
xfconf-query -c xfce4-notifyd -p /do-slideout -t "bool" -s "true" -n
xfconf-query -c xfce4-notifyd -p /notify-location -t "string" -s "bottom-left" -n
xfconf-query -c xfce4-notifyd -p /initial-opacity -t "string" -s "1,000000" -nPanel -> Remove panel 2 (bottom panel)
Panel Items -> Window Buttons -> Properties -> Sorting order: Window title
xfconf-query -c xfce4-panel -p /plugins/plugin-2/sort-order -t "int" -s 2 -n
xfconf-query -c xfce4-panel -p /plugins/plugin-4/miniature-view -t "bool" -s "false" -nxfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-battery -t "int" -s 1 -n
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-sleep-mode-on-battery -t "int" -s 1 -n
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac -t "int" -s 1 -n
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-sleep-mode-on-ac -t "int" -s 1 -nEdit -> Preferences -> Behaviour
Uncheck Maximize window on startup when opening an image
xfconf-query -c ristretto -p /window/maximize-on-startup -t "bool" -s "false" -nLock screen tab
Enable after 0 minutes
xfconf-query -c xfce4-screensaver -p /saver/mode -t "int" -s 0 -nKeyboard -> Application Shortcuts
Get monitor device path: ddccontrol -p | grep -Eo 'dev:/dev/[a-z0-9-]*$' | sort -u
Add shortcut for Super+F11 with command: ddccontrol -r 0x10 -W -5 dev:/dev/i2c-3
Add shortcut for Super+F12 with command: ddccontrol -r 0x10 -W +5 dev:/dev/i2c-3
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F11" -t "string" -s "ddccontrol -r 0x10 -W -5 dev:/dev/i2c-3" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F12" -t "string" -s "ddccontrol -r 0x10 -W +5 dev:/dev/i2c-3" -nHOMEASSISTANT_URL=your_home_assistant_hostname_here
HOMEASSISTANT_TOKEN=your_long_lived_access_token_here
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F5" -t "string" -s "curl -X POST -H \"Authorization: Bearer $HOMEASSISTANT_TOKEN\" -H \"content-type: application/json\" -d '{\"entity_id\":\"light.office\"}' \"http://$HOMEASSISTANT_URL/api/services/light/turn_off\"" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F6" -t "string" -s "curl -X POST -H \"Authorization: Bearer $HOMEASSISTANT_TOKEN\" -H \"content-type: application/json\" -d '{\"entity_id\":\"light.office\",\"brightness_pct\":100}' \"http://$HOMEASSISTANT_URL/api/services/light/turn_on\"" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F7" -t "string" -s "curl -X POST -H \"Authorization: Bearer $HOMEASSISTANT_TOKEN\" -H \"content-type: application/json\" -d '{\"entity_id\":\"light.office\",\"brightness_step_pct\":-5}' \"http://$HOMEASSISTANT_URL/api/services/light/turn_on\"" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F8" -t "string" -s "curl -X POST -H \"Authorization: Bearer $HOMEASSISTANT_TOKEN\" -H \"content-type: application/json\" -d '{\"entity_id\":\"light.office\",\"brightness_step_pct\":5}' \"http://$HOMEASSISTANT_URL/api/services/light/turn_on\"" -nGeneral tab
Automatically save session on logout -> No (Delete any saved sessions)
Lock screen before sleep -> Yes
Make sure to uncheck "Save session for future logins" on logout!
Application Autostart tab
Remove Notes
xfconf-query -c xfce4-session -p /general/SaveOnExit -t bool -s "false" -n
xfconf-query -c xfce4-session -p /shutdown/LockScreen -t "bool" -s "true" -nEdit -> Preferences
Appearance tab
- Set font to
Monospace Regularat size12
Colours tab
- Select Preset "Tango"
- Set background colour
#171421 - Set Text colour
#d0cfcc
Keyboard -> Application Shortcuts
Add shortcut for Super+F9 with command: amixer set Master 5%-`
Add shortcut for Super+F10 with command: amixer set Master 5%+`
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F9" -t "string" -s "amixer set Master 5%-" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/commands/custom/<Super>F10" -t "string" -s "amixer set Master 5%+" -nKeyboard tab
Maximize window -> Ctrl+Alt+Up (because of Alt+Up shortcut in VSC)
Hide window -> Ctrl+Alt+Down (because of Alt+Down shortcut in VSC)
Tile window to the left -> Alt+Left
Tile window to the right -> Alt+Right
xfconf-query -c xfce4-keyboard-shortcuts -p "/xfwm4/custom/<Shift><Alt>Up" -t string -s "maximize_window_key" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/xfwm4/custom/<Shift><Alt>Down" -t string -s "hide_window_key" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/xfwm4/custom/<Shift><Alt>Left" -t "string" -s "tile_left_key" -n
xfconf-query -c xfce4-keyboard-shortcuts -p "/xfwm4/custom/<Shift><Alt>Right" -t "string" -s "tile_right_key" -nAdvanced tab
Wrap workspaces when reaching the screen edge
With a dragged window -> No
xfconf-query -c xfwm4 -p /general/wrap_windows -s "false"Cycling tab
Cycle through windows on all workspaces -> No
xfconf-query -c xfwm4 -p "/general/cycle_workspaces" -t "bool" -s "false" -n
xfconf-query -c xfwm4 -p "/general/scroll_workspaces" -t "bool" -s "false" -nGeneral tab
Number of workspaces: 2
xfconf-query -c xfwm4 -p /general/workspace_count -s 2