move .config/ files out of fschl/home-services/dotfiles/

It's cleaner for the moment. I'll probably regret this when comitting
to guix for multiple machines. I.e. slightly different configs for
different hardware configurations.
This commit is contained in:
Frieder Schlesier 2024-05-08 22:16:45 +02:00 committed by fschl
parent bbe7734631
commit ac67e3405b
7 changed files with 60 additions and 27 deletions

View File

@ -32,9 +32,15 @@ floating_modifier $mod
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+Shift+x exit bindsym $mod+Shift+x exit
bindsym $mod+Shift+r reload bindsym $mod+Shift+r reload
bindsym $mod+r resize # bindsym $mod+r resize
bindsym $mod+r mode "resize"
bindsym $mod+Shift+Return exec foot bindsym $mod+Shift+Return exec kitty
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# use vim keys for window movement # use vim keys for window movement
bindsym $mod+h focus left bindsym $mod+h focus left
@ -59,7 +65,7 @@ bindsym $mod+Shift+k move up 30 px
bindsym $mod+Shift+l move right 30 px bindsym $mod+Shift+l move right 30 px
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+s split h # bindsym $mod+s split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v bindsym $mod+v split v
@ -67,10 +73,6 @@ bindsym $mod+v split v
# enter fullscreen mode for the focused container # enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
# bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
# toggle tiling / floating # toggle tiling / floating
bindsym $mod+Shift+f floating toggle bindsym $mod+Shift+f floating toggle
@ -113,10 +115,11 @@ set $ws8 "8 "
# linux - less often used terminals for background processes # linux - less often used terminals for background processes
set $ws9 "9 " set $ws9 "9 "
assign [class="^Firefox$"] $ws1 # find application info with =swaymsg -t get_tree=
assign [class="^DebugScreen"] $ws3 assign [app_id="firefox"] $ws1
assign [class="^Thunderbird$"] $ws4 assign [class="Emacs"] $ws2
assign [class=".*ee.*ass.*"] $ws8 assign [title="^DebugScreen"] $ws3
assign [app_id="org.keepassxc.KeePassXC"] $ws8
# Move specific workspaces to outputs # Move specific workspaces to outputs
workspace $ws0 output $laptop workspace $ws0 output $laptop
@ -138,8 +141,8 @@ bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5 bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace 6 bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7 bindsym $mod+7 workspace 7
bindsym $mod+8 workspace $WS8 bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $WS9 bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace 10 bindsym $mod+0 workspace 10
# Move focused container to workspace # Move focused container to workspace
@ -151,8 +154,8 @@ bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5 bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace 6 bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7 bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace $WS8 bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $WS9 bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace 10 bindsym $mod+Shift+0 move container to workspace 10
# Bind hotkeys for brightness and volume # Bind hotkeys for brightness and volume
@ -160,6 +163,30 @@ bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
bindsym --locked $mod+p exec playerctl play-pause bindsym --locked $mod+p exec playerctl play-pause
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym i resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Screenshots # Screenshots
bindsym Print exec grimshot --notify save output bindsym Print exec grimshot --notify save output
bindsym Alt+Print exec grimshot --notify save area bindsym Alt+Print exec grimshot --notify save area
@ -176,6 +203,7 @@ exec swayidle -w \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep $lock before-sleep $lock
bindsym Ctrl+Shift+L exec $lock
# Window rules # Window rules
#for_window [title="Firefox — Sharing Indicator"] kill #for_window [title="Firefox — Sharing Indicator"] kill
for_window [title=".* - mpv$"] floating enable, sticky enable for_window [title=".* - mpv$"] floating enable, sticky enable
@ -186,7 +214,10 @@ exec mako --border-radius=2 --font="Iosevka ss08 10" --max-visible=5 --outer-mar
exec nm-applet --indicator exec nm-applet --indicator
exec udiskie -t exec udiskie -t
exec gammastep-indicator -l 50.8643:12.1124 -t 6500:3500 -b 1.0:0.7 exec gammastep-indicator -l 50.8643:12.1124 -t 6500:3500 -b 1.0:0.7
exec emacs exec emacs
exec firefox
exec keepassxc
# Set GNOME settings (requires "glib:bin" in Guix) # Set GNOME settings (requires "glib:bin" in Guix)
exec gsettings set org.gnome.desktop.interface gtk-theme "Matcha-dark-azul" exec gsettings set org.gnome.desktop.interface gtk-theme "Matcha-dark-azul"

View File

@ -1,13 +1,15 @@
{ {
"layer": "bottom", "layer": "bottom",
"position": "bottom", "position": "bottom",
"height": 24, "height": 20,
// maybe take another look at e.g. https://gitlab.com/wef/dotfiles/-/blob/master/.config/waybar/config // maybe take another look at e.g. https://gitlab.com/wef/dotfiles/-/blob/master/.config/waybar/config
// https://github.com/Alexays/Waybar/wiki/Configuration
// https://github.com/Alexays/Waybar/wiki/Examples
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["timer", "custom/disk_root", "custom/disk_home", "network"], "modules-center": [ "custom/disk_root", "network"],
"modules-right": ["tray", "cpu", "memory", "battery", "clock"], "modules-right": [ "memory", "tray", "battery", "clock", ],
"sway/mode": { "sway/mode": {
"format": " {}" "format": " {}"
}, },
@ -16,7 +18,7 @@
"disable-scroll": true "disable-scroll": true
}, },
"clock": { "clock": {
"format": "{:%b %d %H:%M %p W%U}", "format": "{:%b %d %H:%M KW%U}",
"tooltip": false "tooltip": false
}, },
"battery": { "battery": {
@ -62,8 +64,8 @@
"exec": "notmuch count tag:flagged OR tag:inbox AND NOT tag:killed" "exec": "notmuch count tag:flagged OR tag:inbox AND NOT tag:killed"
}, },
"network": { "network": {
"family": "ipv6", // "family": "ipv6",
// "interface": "wlp2*", // (Optional) To force the use of this interface "interface": "wlp3*", // (Optional) To force the use of this interface
"format-wifi": "<span color='#589df6'></span> <span color='gray'>{essid}</span> {frequency} <span color='#589df6'>{signaldBm} dB</span> <span color='#589df6'>⇵</span> {bandwidthUpBits}/{bandwidthDownBits}", "format-wifi": "<span color='#589df6'></span> <span color='gray'>{essid}</span> {frequency} <span color='#589df6'>{signaldBm} dB</span> <span color='#589df6'>⇵</span> {bandwidthUpBits}/{bandwidthDownBits}",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-linked": "{ifname} (No IP) ", "format-linked": "{ifname} (No IP) ",
@ -71,12 +73,12 @@
"format-alt": "{ifname}: {ipaddr}/{cidr}", "format-alt": "{ifname}: {ipaddr}/{cidr}",
"interval": 5 "interval": 5
}, },
"timer": { //"timer": {
"interval": 1, // "interval": 1,
"exec": "~/.config/waybar/timer.sh", // "exec": "~/.config/waybar/timer.sh",
"exec-if": "pgrep emacs", // "exec-if": "pgrep emacs",
"escape": true // "escape": true
}, //},
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {