update various things

exec always saync and nm-applet
bindswitch to turn on and off internal display
change some motions
This commit is contained in:
Tim Gröger 2023-11-10 09:21:32 +01:00
parent 5a024af2d5
commit 1a5dc13cf9
8 changed files with 40 additions and 11 deletions

2
.zshrc
View File

@ -153,3 +153,5 @@ if [[ -z "$TMUX" ]]; then
#else
# tmux switch-client -t default
fi
eval "$(direnv hook zsh)"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,2 +1,4 @@
exec alacritty
exec google-chrome-stable
exec swaync
exec_always nm-applet

View File

@ -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": "<span foreground='red'><sup></sup></span>",
"none": " ",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": " ",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": " ",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"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": {

View File

@ -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