From 7f0f6f2af7f4fb87c3d9bb56b19138c7dff425a9 Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Mon, 19 Aug 2024 20:58:44 +0800 Subject: [PATCH] Update for use with XFCE4 - Still use autorandr to manage screens at home, as it plays better with feh - Use feh's saved executable .fehbg - Have XFCE4 take care of volume notifications - Use XFCE4 bar instead of i3status - Start emacs in daemon mode --- i3/.config/i3/config | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 9fbef1f..8dc5468 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -12,8 +12,8 @@ # Set up laptop monitor as primary screen and external screen on its right # Managed by autorandr exec --no-startup-id autorandr --change -#exec_always --no-startup-id xrandr --output eDP-1 --mode 2048x1152 --primary \ -# --output DP-1-2 --auto --mode 2560x1440 --right-of eDP-1 +exec_always --no-startup-id xrandr --output eDP-1 --mode 2048x1152 --primary \ + --output DP-1-2 --auto --mode 2560x1440 --right-of eDP-1 set $mod Mod4 @@ -38,7 +38,7 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. -exec --no-startup-id nm-applet +exec --no-startup-id nm-applet --sm-disable ## Control brightness bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5% @@ -49,19 +49,19 @@ bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%- exec --no-startup-id dunst set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status && dunstify -a "changeVolume" -u low -i audio-volume-medium \ - -h int:value:"$(pamixer --get-volume)" "Volume: $(pamixer --get-volume)%" \ - -h string:x-dunst-stack-tag:volume \ - -h string:hlcolor:#3397ff -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && \ -$refresh_i3status && \ -dunstify -a "changeVolume" -u low -i audio-volume-low \ - -h int:value:"$(pamixer --get-volume)" "Volume: $(pamixer --get-volume)%" \ - -h string:x-dunst-stack-tag:volume \ - -h string:hlcolor:#3397ff +#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status && dunstify -a "changeVolume" -u low -i audio-volume-medium \ +# -h int:value:"$(pamixer --get-volume)" "Volume: $(pamixer --get-volume)%" \ +# -h string:x-dunst-stack-tag:volume \ +# -h string:hlcolor:#3397ff +#bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && \ +#$refresh_i3status && \ +#dunstify -a "changeVolume" -u low -i audio-volume-low \ +# -h int:value:"$(pamixer --get-volume)" "Volume: $(pamixer --get-volume)%" \ +# -h string:x-dunst-stack-tag:volume \ +# -h string:hlcolor:#3397ff -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status && dunstify -t 2000 -u low -i audio-volume-muted \ --h string:x-dunst-stack-tag:volume "Muted" +#bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status && dunstify -t 2000 -u low -i audio-volume-muted \ +#-h string:x-dunst-stack-tag:volume "Muted" bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status @@ -201,16 +201,20 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) -bar { - status_command i3status -} +#bar { +# tray_output primary +# status_command i3status +#} -# Display Wallpaper -exec_always feh --bg-fill images/20180418T1659__Outback_regenboog.jpg +# Display Wallpaper using feh's saved executable +exec_always ~/.fehbg # Take a screenshot upon pressing PrtSc (select an area) bindsym --release Print exec --no-startup-id import /tmp/`date +%Y%m%dT%H%M%S`--screenshot-`hostname`.png # Take a screenshot upon pressing PrtSc (select an area) bindsym --release Shift+Print exec --no-startup-id import -window root /tmp/`date +%Y%m%dT%H%M%S`--screenshot-`hostname`.png + +# Start Emacs in daemon mode and create a frame with mu4e in it +exec emacs --daemon && emacsclient -c -e '(mu4e)' -- 2.39.5