Skip to content

Commit

Permalink
Fix: now i3 automatically finds the id of the touchpad, added helping…
Browse files Browse the repository at this point in the history
… comments to polybar config
  • Loading branch information
Keyitdev committed Jul 31, 2023
1 parent 4f0aeda commit 1d1a7ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 12 additions & 0 deletions config/polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ modules-right =
separator =

; Change it for yourself
; find /sys/devices -name "edid"

monitor = HDMI-1
monitor-fallback =
monitor-strict = false
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1d1a7ea

Please sign in to comment.