Add brightness block
This commit is contained in:
+11
-10
@@ -42,10 +42,21 @@ instance=Master
|
|||||||
interval=1
|
interval=1
|
||||||
signal=10
|
signal=10
|
||||||
|
|
||||||
|
[brightness]
|
||||||
|
label=
|
||||||
|
command=$HOME/.config/i3/scripts/brightness.sh
|
||||||
|
interval=1
|
||||||
|
|
||||||
# Network interface monitoring
|
# Network interface monitoring
|
||||||
#
|
#
|
||||||
# If the instance is not specified, use the interface used for default route.
|
# If the instance is not specified, use the interface used for default route.
|
||||||
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
|
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
|
||||||
|
[wifi]
|
||||||
|
label=
|
||||||
|
#instance=wlp3s0
|
||||||
|
interval=10
|
||||||
|
separator=true
|
||||||
|
|
||||||
[iface]
|
[iface]
|
||||||
label=
|
label=
|
||||||
#instance=wlan0
|
#instance=wlan0
|
||||||
@@ -53,12 +64,6 @@ label=
|
|||||||
interval=10
|
interval=10
|
||||||
separator=true
|
separator=true
|
||||||
|
|
||||||
[wifi]
|
|
||||||
label=
|
|
||||||
#instance=wlp3s0
|
|
||||||
interval=10
|
|
||||||
separator=true
|
|
||||||
|
|
||||||
#[bandwidth]
|
#[bandwidth]
|
||||||
#instance=eth0
|
#instance=eth0
|
||||||
#interval=5
|
#interval=5
|
||||||
@@ -73,10 +78,6 @@ label=
|
|||||||
#instance=1
|
#instance=1
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
[load_average]
|
|
||||||
label=
|
|
||||||
interval=1
|
|
||||||
|
|
||||||
# Date Time
|
# Date Time
|
||||||
#
|
#
|
||||||
[time]
|
[time]
|
||||||
|
|||||||
+6
-1
@@ -189,6 +189,8 @@ client.urgent $bg-color-urgent $bg-color-urgent $text-color #00FF00
|
|||||||
|
|
||||||
#Keybindings
|
#Keybindings
|
||||||
bindsym $mod+Mod1+l exec $HOME/.config/i3/scripts/lock.sh
|
bindsym $mod+Mod1+l exec $HOME/.config/i3/scripts/lock.sh
|
||||||
|
bindsym $mod+F3 exec xbacklight -inc 10 # increase screen brightness
|
||||||
|
bindsym $mod+F2 exec xbacklight -dec 10 # increase screen brightness
|
||||||
|
|
||||||
# Window appearance
|
# Window appearance
|
||||||
smart_gaps on
|
smart_gaps on
|
||||||
@@ -198,7 +200,7 @@ hide_edge_borders both
|
|||||||
for_window [class=".*"] border pixel 2
|
for_window [class=".*"] border pixel 2
|
||||||
|
|
||||||
# Application startup
|
# Application startup
|
||||||
exec_always --no-startup-id feh --bg-scale $HOME/Pictures/wallpaper.jpg
|
exec_always --no-startup-id feh --bg-fill $HOME/Pictures/wallpaper.jpg
|
||||||
exec --no-startup-id firefox
|
exec --no-startup-id firefox
|
||||||
exec --no-startup-id urxvt
|
exec --no-startup-id urxvt
|
||||||
exec --no-startup-id thunar --daemon
|
exec --no-startup-id thunar --daemon
|
||||||
@@ -206,3 +208,6 @@ exec --no-startup-id thunar
|
|||||||
|
|
||||||
# Reload Xresources
|
# Reload Xresources
|
||||||
# xrdb -load ~/.Xresources
|
# xrdb -load ~/.Xresources
|
||||||
|
|
||||||
|
# Get window name
|
||||||
|
# xprop -> WM_CLASS
|
||||||
|
|||||||
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $BLOCK_BUTTON in
|
||||||
|
# right click
|
||||||
|
3) xbacklight -set 30;;
|
||||||
|
|
||||||
|
# scroll up
|
||||||
|
4) xbacklight -inc 10 ;;
|
||||||
|
|
||||||
|
# scroll down
|
||||||
|
5) xbacklight -dec 10 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
printf "%.0f" "$(xbacklight -get)"
|
||||||
Reference in New Issue
Block a user