forked from logan/dotfiles
Added polybar touchscreen controls
Signed-off-by: logan2611 <logan2611@gmail.com>
This commit is contained in:
parent
38ac97f4be
commit
f42905a833
1 changed files with 233 additions and 0 deletions
|
@ -396,6 +396,239 @@ menu-2-0-exec = sudo poweroff
|
|||
menu-2-1 = cancel
|
||||
menu-2-1-exec = menu-open-0
|
||||
|
||||
[module/i3touchmenu]
|
||||
type = custom/menu
|
||||
|
||||
expand-right = true
|
||||
|
||||
format-spacing = 1
|
||||
|
||||
;; Open the menu
|
||||
label-open = " "
|
||||
label-open-foreground = #FFF
|
||||
|
||||
;; Close the menu
|
||||
label-close =
|
||||
label-close-foreground = ${colors.secondary}
|
||||
label-separator = " "
|
||||
label-separator-foreground = ${colors.foreground-alt}
|
||||
|
||||
;; Launcher
|
||||
menu-0-0 =
|
||||
menu-0-0-exec = menu-open-1
|
||||
|
||||
;; Move
|
||||
menu-0-1 =
|
||||
menu-0-1-exec = menu-open-2
|
||||
|
||||
;; Layout
|
||||
menu-0-2 =
|
||||
menu-0-2-exec = menu-open-3
|
||||
|
||||
;; Split
|
||||
menu-0-3 =
|
||||
menu-0-3-exec = menu-open-4
|
||||
|
||||
;; Resize
|
||||
menu-0-4 =
|
||||
menu-0-4-exec = menu-open-5
|
||||
|
||||
;; Move to workspace
|
||||
menu-0-5 =
|
||||
menu-0-5-exec = menu-open-6
|
||||
|
||||
;; Kill
|
||||
menu-0-6 =
|
||||
menu-0-6-exec = menu-open-7
|
||||
|
||||
;; Power
|
||||
menu-0-7 =" "
|
||||
menu-0-7-exec = menu-open-8
|
||||
|
||||
;; Launcher: Back to main menu
|
||||
menu-1-0 =
|
||||
menu-1-0-exec = menu-open-0
|
||||
|
||||
;; Launcher: firefox
|
||||
menu-1-1=
|
||||
menu-1-1-exec= firefox &
|
||||
|
||||
;; Launcher: st
|
||||
menu-1-2=" "
|
||||
menu-1-2-exec = st &
|
||||
|
||||
;; Move: Back to main menu
|
||||
menu-2-0 =
|
||||
menu-2-0-exec = menu-open-0
|
||||
|
||||
;; Move: Left
|
||||
menu-2-1 =
|
||||
menu-2-1-exec = i3-msg 'move left'
|
||||
|
||||
;; Move: Right
|
||||
menu-2-2 =
|
||||
menu-2-2-exec = i3-msg 'move right'
|
||||
|
||||
;; Move: Up
|
||||
menu-2-3 =
|
||||
menu-2-3-exec = i3-msg 'move up'
|
||||
|
||||
;; Move: Down
|
||||
menu-2-4 = " "
|
||||
menu-2-4-exec = i3-msg 'move down'
|
||||
|
||||
;; Layout: Back to main menu
|
||||
menu-3-0 =
|
||||
menu-3-0-exec = menu-open-0
|
||||
|
||||
;; Layout: Split
|
||||
menu-3-1 =
|
||||
menu-3-1-exec = i3-msg 'layout toggle split'
|
||||
|
||||
;; Layout: Stacking
|
||||
menu-3-2 = 缾
|
||||
menu-3-2-exec = i3-msg 'layout stacking'
|
||||
|
||||
;; Layout: Tabbed
|
||||
menu-3-3 = ﴳ
|
||||
menu-3-3-exec = i3-msg 'layout tabbed'
|
||||
|
||||
;; Layout: Toggle floating
|
||||
menu-3-4 = " "
|
||||
menu-3-4-exec = i3-msg 'floating toggle'
|
||||
|
||||
;; Split: Back to main menu
|
||||
menu-4-0 =
|
||||
menu-4-0-exec = menu-open-0
|
||||
|
||||
;; Split: Vertical
|
||||
menu-4-1 =
|
||||
menu-4-1-exec = i3-msg 'split v'
|
||||
|
||||
;; Split: Horizontal
|
||||
menu-4-2 = " "
|
||||
menu-4-2-exec = i3-msg 'split h'
|
||||
|
||||
;; Resize: Back to main menu
|
||||
menu-5-0 =
|
||||
menu-5-0-exec = menu-open-0
|
||||
|
||||
;; Resize: Grow height
|
||||
menu-5-1 = ﬕ
|
||||
menu-5-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Shrink height
|
||||
menu-5-2 = ﬔ
|
||||
menu-5-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Grow width
|
||||
menu-5-3 = ﲑﲒ
|
||||
menu-5-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
|
||||
|
||||
;; Resize: Shrink width
|
||||
menu-5-4 = "ﲒﲑ "
|
||||
menu-5-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
|
||||
|
||||
;; Move to workspace: Back to main menu
|
||||
menu-6-0 =
|
||||
menu-6-0-exec = menu-open-0
|
||||
|
||||
;; Move to workspace: 1
|
||||
menu-6-1 = 1
|
||||
menu-6-1-exec = i3-msg 'move container to workspace 1'
|
||||
|
||||
;; Move to workspace: 2
|
||||
menu-6-2 = 2
|
||||
menu-6-2-exec = i3-msg 'move container to workspace 2'
|
||||
|
||||
;; Move to workspace: 3
|
||||
menu-6-3 = 3
|
||||
menu-6-3-exec = i3-msg 'move container to workspace 3'
|
||||
|
||||
;; Move to workspace: 4
|
||||
menu-6-4 = 4
|
||||
menu-6-4-exec = i3-msg 'move container to workspace 4'
|
||||
|
||||
;; Move to workspace: 5
|
||||
menu-6-5 = 5
|
||||
menu-6-5-exec = i3-msg 'move container to workspace 5'
|
||||
|
||||
;; Move to workspace: 6
|
||||
menu-6-6 = 6
|
||||
menu-6-6-exec = i3-msg 'move container to workspace 6'
|
||||
|
||||
;; Move to workspace: 7
|
||||
menu-6-7 = 7
|
||||
menu-6-7-exec = i3-msg 'move container to workspace 7'
|
||||
|
||||
;; Move to workspace: 8
|
||||
menu-6-8 = 8
|
||||
menu-6-8-exec = i3-msg 'move container to workspace 8'
|
||||
|
||||
;; Move to workspace: 9
|
||||
menu-6-9 = 9
|
||||
menu-6-9-exec = i3-msg 'move container to workspace 9'
|
||||
|
||||
;; Move to workspace: 10
|
||||
menu-6-10 = "10 "
|
||||
menu-6-10-exec = i3-msg 'move container to workspace 10'
|
||||
|
||||
;; Kill: Back to main menu
|
||||
menu-7-0 =
|
||||
menu-7-0-exec = menu-open-0
|
||||
|
||||
;; Kill: Kill
|
||||
menu-7-1 = "You sure? "
|
||||
menu-7-1-exec = i3-msg 'kill'
|
||||
|
||||
;; Power: Back to main menu
|
||||
menu-8-0 =
|
||||
menu-8-0-exec = menu-open-0
|
||||
|
||||
;; Power: Screen off
|
||||
menu-8-1 =
|
||||
menu-8-1-exec = xset dpms force off
|
||||
|
||||
;; Power: Lock
|
||||
menu-8-2 =
|
||||
menu-8-2-exec = betterlockscreen -l
|
||||
|
||||
;; Power: Reboot
|
||||
menu-8-3 = ﰇ
|
||||
menu-8-3-exec = shutdown -r now
|
||||
|
||||
;; Power: Shutdown
|
||||
menu-8-4 = " "
|
||||
menu-8-4-exec = shutdown -h now
|
||||
|
||||
[module/touchkeyboard]
|
||||
;; Open onscreen keyboard (onboard)
|
||||
type=custom/text
|
||||
content=" "
|
||||
content-foreground=#fff
|
||||
click-left=dbus-send --type=method_call --print-reply --dest=org.onboard.Onboard /org/onboard/Onboard/Keyboard org.onboard.Onboard.Keyboard.ToggleVisible
|
||||
|
||||
[module/touchredraw]
|
||||
;; Restart i3 in order to redraw polybar to fit screen orientation
|
||||
type=custom/text
|
||||
content = " "
|
||||
content-foreground=#fff
|
||||
click-left = i3-msg 'restart'
|
||||
|
||||
[module/touchbrightdown]
|
||||
;; Brightness down
|
||||
type=custom/text
|
||||
content="漢 "
|
||||
content-foreground=#fff
|
||||
click-left=xbacklight -dec 20
|
||||
|
||||
[module/touchbrightup]
|
||||
;; Brightness up
|
||||
type=custom/text
|
||||
content="瀞 "
|
||||
content-foreground=#fff
|
||||
click-left=xbacklight -inc 20
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
|
|
Loading…
Reference in a new issue