From 1d1a7ea34e7e88d106eb7aa108eb356482367960 Mon Sep 17 00:00:00 2001 From: Keyitdev <70140437+Keyitdev@users.noreply.github.com> Date: Mon, 31 Jul 2023 22:19:26 +0200 Subject: [PATCH] Fix: now i3 automatically finds the id of the touchpad, added helping comments to polybar config --- config/i3/config | 4 ++-- config/polybar/config.ini | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/i3/config b/config/i3/config index 34e10c0..7116870 100755 --- a/config/i3/config +++ b/config/i3/config @@ -151,8 +151,8 @@ bindsym ctrl + F3 exec amixer set Capture nocap && dunstify -a "Microphone" "Mic bindsym ctrl + F4 exec amixer set Capture cap && dunstify -a "Microphone" "Microphone" "Microphone is unmuted" -r 100 -i /usr/local/bin/icons/mic.svg # toggle touchpad -bindsym ctrl + F9 exec xinput set-prop 15 "Device Enabled" 0 && dunstify -a "Touchpad" "Touchpad" "Touchpad is disabled" -r 100 -bindsym ctrl + F10 exec xinput set-prop 15 "Device Enabled" 1 && dunstify -a "Touchpad" "Touchpad" "Touchpad is enabled" -r 100 +bindsym ctrl + F9 exec xinput set-prop $(xinput list | grep -oP 'Touchpad.*id=\K\d+') "Device Enabled" 0 && dunstify -a "Touchpad" "Touchpad" "Touchpad is disabled" -r 100 +bindsym ctrl + F10 exec xinput set-prop $(xinput list | grep -oP 'Touchpad.*id=\K\d+') "Device Enabled" 1 && dunstify -a "Touchpad" "Touchpad" "Touchpad is enabled" -r 100 # workspaces names set $ws1 "1" diff --git a/config/polybar/config.ini b/config/polybar/config.ini index c031ad3..568c87d 100755 --- a/config/polybar/config.ini +++ b/config/polybar/config.ini @@ -93,6 +93,8 @@ modules-right = separator = ; Change it for yourself +; find /sys/devices -name "edid" + monitor = HDMI-1 monitor-fallback = monitor-strict = false @@ -201,6 +203,8 @@ ramp-volume-foreground = ${color.blue} type = internal/backlight ; Change it for yourself +; ls -1 /sys/class/backlight/ + card = amdgpu_bl0 use-actual-brightness = true enable-scroll = true @@ -219,6 +223,8 @@ type = internal/battery poll-interval = 2 ; Change it for yourself +; ls /sys/class/power_supply/ + battery = BAT1 adapter = ADP0 full-at = 99 @@ -264,6 +270,8 @@ type = internal/date interval = 1 ; Change it for yourself +; https://en.cppreference.com/w/cpp/io/manip/put_time + date = %a %d %b time = %H:%M date-alt = %A %d %B %Y @@ -423,6 +431,8 @@ toggle-on-foreground = ${color.primary} toggle-off-foreground = ${color.red} ; Change it for yourself +; ls /sys/class/net + [module/wired-network] type = internal/network interface = eth0 @@ -457,6 +467,8 @@ label-connected = "%{A1:networkmanager_dmenu &:} %essid% %downspeed%%{A}" label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}" ; Change it for yourself +; ls /sys/class/net + [module/wired-network_stats] type = internal/network interface = eth0