summaryrefslogtreecommitdiff
path: root/home/.config/sway/additional.d
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
commit0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch)
treef91b7ada571a4dab7ae99c8f3ee252616baff2db /home/.config/sway/additional.d
squashed init
Diffstat (limited to 'home/.config/sway/additional.d')
-rw-r--r--home/.config/sway/additional.d/desktop10
-rw-r--r--home/.config/sway/additional.d/laptop5
-rw-r--r--home/.config/sway/additional.d/lock2
3 files changed, 17 insertions, 0 deletions
diff --git a/home/.config/sway/additional.d/desktop b/home/.config/sway/additional.d/desktop
new file mode 100644
index 0000000..a7cf60c
--- /dev/null
+++ b/home/.config/sway/additional.d/desktop
@@ -0,0 +1,10 @@
+# Backlight brightness
+bindsym --locked --to-code $mod+BracketLeft exec ddcutil -d 1 setvcp 10 + 5
+bindsym --locked --to-code $mod+Apostrophe exec ddcutil -d 1 setvcp 10 - 5
+bindsym --locked --to-code $mod+Shift+BracketLeft exec ddcutil -d 1 setvcp 10 100
+bindsym --locked --to-code $mod+Shift+Apostrophe exec ddcutil -d 1 setvcp 10 50
+
+input type:pointer {
+ accel_profile "flat"
+ pointer_accel 0.15
+}
diff --git a/home/.config/sway/additional.d/laptop b/home/.config/sway/additional.d/laptop
new file mode 100644
index 0000000..e9de740
--- /dev/null
+++ b/home/.config/sway/additional.d/laptop
@@ -0,0 +1,5 @@
+# Backlight brightness
+bindsym --locked --to-code $mod+BracketLeft exec brightnessctl s +5%
+bindsym --locked --to-code $mod+Apostrophe exec brightnessctl s 5%-
+bindsym --locked --to-code $mod+Shift+BracketLeft exec brightnessctl s 100%
+bindsym --locked --to-code $mod+Shift+Apostrophe exec brightnessctl s 50%
diff --git a/home/.config/sway/additional.d/lock b/home/.config/sway/additional.d/lock
new file mode 100644
index 0000000..2a1821b
--- /dev/null
+++ b/home/.config/sway/additional.d/lock
@@ -0,0 +1,2 @@
+# Lock
+bindsym $mod+l exec swaylock --image ~/.selfconfigs/sway/lock.png