diff --git a/.zshrc b/.zshrc index 8fdf512..39afbbe 100644 --- a/.zshrc +++ b/.zshrc @@ -153,3 +153,5 @@ if [[ -z "$TMUX" ]]; then #else # tmux switch-client -t default fi + +eval "$(direnv hook zsh)" diff --git a/sway/config.d/20-idle.conf b/sway/config.d/20-idle.conf index 25991b4..b49ea45 100644 --- a/sway/config.d/20-idle.conf +++ b/sway/config.d/20-idle.conf @@ -3,9 +3,9 @@ # Example configuration: # exec swayidle -w \ - timeout 300 'swaylock -f -c 000000' \ - before-sleep 'swaylock -f -c 000000' -# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + before-sleep 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' +# timeout 300 'swaylock -f -c 000000 -i $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg' \ +# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' # # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when diff --git a/sway/config.d/20-key_bindings.conf b/sway/config.d/20-key_bindings.conf index a682ca0..5baf4c3 100644 --- a/sway/config.d/20-key_bindings.conf +++ b/sway/config.d/20-key_bindings.conf @@ -30,5 +30,7 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status -bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --min-val=2 -q set 2%- -bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl -q set 2%+ +bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl --min-val=2 -q set 5%- +bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl -q set 5%+ + +bindsym $mod+Shift+n exec swaync-client -t -sw diff --git a/sway/config.d/20-motions.conf b/sway/config.d/20-motions.conf index e663c64..4fdc0b2 100644 --- a/sway/config.d/20-motions.conf +++ b/sway/config.d/20-motions.conf @@ -13,10 +13,10 @@ bindsym $mod+Right focus right # Move the focused window with the same, but add Shift - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right +# bindsym $mod+Shift+$left move left +# bindsym $mod+Shift+$down move down +# bindsym $mod+Shift+$up move up +# bindsym $mod+Shift+$right move right # Ditto, with arrow keys bindsym $mod+Shift+Left move left bindsym $mod+Shift+Down move down diff --git a/sway/config.d/20-output.conf b/sway/config.d/20-output.conf index 6f20235..bbb88bc 100644 --- a/sway/config.d/20-output.conf +++ b/sway/config.d/20-output.conf @@ -11,3 +11,6 @@ output * bg $HOME/Bilder/wallpaper/undertale_sans-wallpaper-2048x1152.jpg fill # # You can get the names of your outputs by running: swaymsg -t get_outputs font pango:Hack Nerd Font mono:style=Regular 12 + +bindswitch --locked --reload lid:on output eDP-1 disable +bindswitch --locked --reload lid:off output eDP-1 enable diff --git a/sway/config.d/99-startup.conf b/sway/config.d/99-startup.conf index b78e8f0..85445b5 100644 --- a/sway/config.d/99-startup.conf +++ b/sway/config.d/99-startup.conf @@ -1,2 +1,4 @@ exec alacritty exec google-chrome-stable +exec swaync +exec_always nm-applet diff --git a/waybar/config b/waybar/config index 3ad53c2..325fa53 100644 --- a/waybar/config +++ b/waybar/config @@ -29,6 +29,7 @@ //"custom/keyboard-layout", "battery", "pulseaudio", + "custom/notification", "clock#date", "clock#time" ], @@ -37,7 +38,26 @@ // ------------------------------------------------------------------------- // Modules // ------------------------------------------------------------------------- - + "custom/notification": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "notification": "", + "none": " ", + "dnd-notification": "", + "dnd-none": " ", + "inhibited-notification": "", + "inhibited-none": " ", + "dnd-inhibited-notification": "", + "dnd-inhibited-none": " " + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true + }, "battery": { "interval": 10, "states": { diff --git a/wofi/config b/wofi/config index 762a54e..fe997aa 100644 --- a/wofi/config +++ b/wofi/config @@ -2,7 +2,7 @@ show=drun width=750 height=400 always_parse_args=true -show_all=false +show_all=true print_command=true insensitive=true allow_images=true