Compare commits

..

10 commits

Author SHA1 Message Date
23925c9f34 screenlock: Extract screenlock config
Extract screenlock config into its own file.
2024-04-27 15:07:05 +02:00
826ebc678e i3status-rs: Change thresholds for disk space 2024-04-27 15:02:39 +02:00
4d96179420 i3status-rs: Improve status of wifi
Shorten the length of the frequency.
2024-04-27 15:01:50 +02:00
bbb97eabe3 dunst: Adapt to x13 2024-04-27 15:00:13 +02:00
4962c99ca6 dunst: Improve dunst keybindings 2024-04-27 14:58:39 +02:00
1e5bcc0e47 gitignore: Update gitignore
Recently vcsh also added the intermediate directories to the gitignore
file.
2024-04-27 14:53:13 +02:00
e7b0476c36 media: Extract media key bindings
Extract media key bindings into own file.
2024-04-27 14:52:00 +02:00
60760861c2 config: Fix workspaces
As the workspace keybindings were broken, fix them.
2023-09-29 18:31:00 +02:00
28a0adf76c dunst: Add keybindings for dunst
In order to control dunst from the keyboard create some keybindings.
2023-09-29 18:24:19 +02:00
13d7c606c2 dunst: Create dunst config
In order to improve visibility of notifications add a custom
configuration.
2023-09-29 18:18:39 +02:00
7 changed files with 63 additions and 28 deletions

20
.config/dunst/dunstrc Normal file
View file

@ -0,0 +1,20 @@
[global]
follow = keyboard
scale = 1
idle_threshold = 3
font = Monospace 10
history_length = 100
corner_radius = 5
ignore_dbusclose = true
timeout = 0
background = "#333333"
frame_color = "#009900"
[urgency_low]
foreground = "#009900"
[urgency_normal]
foreground = "#ffee33"
[urgency_critical]
foreground = "#aa3333"

View file

@ -29,37 +29,37 @@ format = "$icon $ip $graph_down $speed_down $graph_up $speed_up via $device "
block = "net" block = "net"
device = "wlp3s0" device = "wlp3s0"
inactive_format = "$icon x " inactive_format = "$icon x "
format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency " format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency.eng(w:3) "
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/" path = "/"
warning = 70.0 warning = 80.0
alert = 85.0 alert = 90.0
info_type = "used" info_type = "used"
format = "$icon $path $percentage " format = "$icon $path $percentage "
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/boot" path = "/boot"
warning = 70.0 warning = 80.0
alert = 85.0 alert = 90.0
info_type = "used" info_type = "used"
format = "$icon $path $percentage " format = "$icon $path $percentage "
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/home" path = "/home"
warning = 70.0 warning = 80.0
alert = 85.0 alert = 90.0
info_type = "used" info_type = "used"
format = "$icon $path $percentage " format = "$icon $path $percentage "
[[block]] [[block]]
block = "disk_space" block = "disk_space"
path = "/var" path = "/var"
warning = 70.0 warning = 80.0
alert = 85.0 alert = 90.0
info_type = "used" info_type = "used"
format = "$icon $path $percentage " format = "$icon $path $percentage "

View file

@ -9,7 +9,6 @@ set $right f
set $term alacritty set $term alacritty
set $editor em set $editor em
set $menu bemenu-run -i -p "" --hf "#009900" --hb "#333333" set $menu bemenu-run -i -p "" --hf "#009900" --hb "#333333"
set $lock fuzzy-swaylock
set $screenshot grim set $screenshot grim
# use mouse + $mod to drag floating windows to their wanted position # use mouse + $mod to drag floating windows to their wanted position
@ -24,9 +23,6 @@ bindsym $mod+Shift+Return exec $editor
# take screenshot # take screenshot
bindsym $mod+Print exec $screenshot bindsym $mod+Print exec $screenshot
# lock screen
bindsym $mod+l exec $lock
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -59,19 +55,6 @@ bindsym $mod+a focus parent
# focus the child container # focus the child container
bindsym $mod+q focus child bindsym $mod+q focus child
# media keys
set $refresh_i3status killall -SIGUSR1 i3status-rs
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
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 XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioStop exec --no-startup-id mpc stop
# exit sway # exit sway
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
@ -124,8 +107,8 @@ bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5 bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6 bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7 bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $w8 bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $w9 bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10 bindsym $mod+0 workspace number $ws10
# Move focused container to workspace # Move focused container to workspace

View file

@ -0,0 +1,4 @@
# dunst control
bindsym $mod+comma exec dunstctl close
bindsym $mod+Shift+comma exec dunstctl close-all
bindsym $mod+period exec dunstctl history-pop

View file

@ -0,0 +1,12 @@
# media keys
set $refresh_i3status killall -SIGUSR1 i3status-rs
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
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 XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioStop exec --no-startup-id mpc stop

View file

@ -0,0 +1,3 @@
# screenlock
set $lock fuzzy-swaylock 37c3
bindsym $mod+Shift+l exec $lock

View file

@ -1,6 +1,19 @@
* *
!/.config
!/.config/dunst
!/.config/dunst/dunstrc
!/.config/i3status-rust
!/.config/i3status-rust/config.toml !/.config/i3status-rust/config.toml
!/.config/i3status-rust/secondary.toml !/.config/i3status-rust/secondary.toml
!/.config/sway
!/.config/sway/config !/.config/sway/config
!/.config/sway/config.d
!/.config/sway/config.d/dunst
!/.config/sway/config.d/media
!/.config/sway/config.d/screenlock
!/.gitignore.d
!/.gitignore.d/sway
!/.local
!/.local/bin
!/.local/bin/fuzzy-i3lock !/.local/bin/fuzzy-i3lock
!/.local/bin/i3-run !/.local/bin/i3-run