better notes, polybar i3touchmenu & battery

master
emamaker 2022-09-06 18:09:39 +02:00
parent e09f3a1995
commit 32167f44bb
3 changed files with 596 additions and 9 deletions

View File

@ -10,6 +10,8 @@ Remember to:
- install rofi themes from [github](!https://github.com/adi1090x/rofi) and then copy my modified dotfiles there in $HOME/.config/rofi - install rofi themes from [github](!https://github.com/adi1090x/rofi) and then copy my modified dotfiles there in $HOME/.config/rofi
- Change colors and styles to rofi themes: - Change colors and styles to rofi themes:
## Additional packages
sudo pacman -S alsa-utils pavucontrol maim dunst light xfce4-power-manager inetutils ttf-font-awesome xdg-user-dirs viewnior
yay -S betterlockscreen
This theme should also be compatible with my Thinkpad Yoga 370, some polybar modules are there to be used while in touchscreen mode, but they also have a keyboard shortcut define in i3 config. For polybar, remember to install [fontawesome](!https://fontawesome.com) (`ttf-font-awesome` package if on ArchLinux) This theme should also be compatible with my Thinkpad Yoga 370, some polybar modules are there to be used while in touchscreen mode, but they also have a keyboard shortcut define in i3 config. For polybar, remember to install [fontawesome](!https://fontawesome.com) (`ttf-font-awesome` package if on ArchLinux)

View File

@ -49,15 +49,15 @@ module-margin = 2
separator = | separator = |
separator-foreground = ${colors.disabled} separator-foreground = ${colors.disabled}
font-0 = fixed:pixelsize=10;1 font-0 = fixed:pixelsize=12;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1 font-2 = siji:pixelsize=10;1
font-3 = FontAwesome5Free:style=Solid:pixelsize=18:antialias=false;3 font-3 = FontAwesome5Free:style=Solid:pixelsize=16:antialias=false;5
font-4 = FontAwesome5Brands:style=Solid:pixelsize=18:antialias=false;3 font-4 = FontAwesome5Brands:style=Solid:pixelsize=16:antialias=false;5
modules-left = i3 modules-left = i3
modules-center = date modules-center = date
modules-right = filesystem wlan eth memory cpu screenshot volume brightness launcher powermenu modules-right = filesystem wlan memory cpu screenshot volume battery brightness launcher i3touchmenu powermenu
cursor-click = pointer cursor-click = pointer
cursor-scroll = ns-resize cursor-scroll = ns-resize
@ -115,14 +115,14 @@ label-unmounted-foreground = ${colors.disabled}
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
format-prefix = "RAM " format-prefix = ""
format-prefix-foreground = ${colors.primary} format-prefix-foreground = ${colors.primary}
label = %used:2% label = %used:2%
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
format-prefix = "CPU " format-prefix = ""
format-prefix-foreground = ${colors.primary} format-prefix-foreground = ${colors.primary}
label = %percentage:2%% label = %percentage:2%%
@ -160,7 +160,7 @@ pseudo-transparency = true
; vim:ft=dosini ; vim:ft=dosini
[module/launcher] [module/launcher]
type = custom/text type = custom/text
content = content =
content-background = black content-background = black
content-foreground = green content-foreground = green
click-left = ~/.config/rofi/launchers/type-1/launcher.sh click-left = ~/.config/rofi/launchers/type-1/launcher.sh
@ -169,7 +169,7 @@ click-right = launcher_t1
;; Power Menu Module ;; Power Menu Module
[module/powermenu] [module/powermenu]
type = custom/text type = custom/text
content = content =
content-background = black content-background = black
content-foreground = red content-foreground = red
click-left = ~/.config/rofi/powermenu/type-1/powermenu.sh click-left = ~/.config/rofi/powermenu/type-1/powermenu.sh
@ -201,3 +201,180 @@ content-background = black
content-foreground = red content-foreground = red
click-left = ~/.config/rofi/applets/bin/screenshot.sh click-left = ~/.config/rofi/applets/bin/screenshot.sh
click-right = volume_t1 click-right = volume_t1
;; Battery Menu Module
[module/battery]
type = custom/text
content =
content-background = black
content-foreground = red
click-left = ~/.config/rofi/applets/bin/battery.sh
click-right = volume_t1
[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}
;; Move
menu-0-0 =
menu-0-0-exec = menu-open-1
;; Layout
menu-0-1 =
menu-0-1-exec = menu-open-2
;; Split
menu-0-2 =
menu-0-2-exec = menu-open-3
;; Resize
menu-0-3 =
menu-0-3-exec = menu-open-4
;; Move to workspace
menu-0-4 =
menu-0-4-exec = menu-open-5
;; Kill
menu-0-5 =
menu-0-5-exec = menu-open-6
;; Move: Back to main menu
menu-1-0 =
menu-1-0-exec = menu-open-0
;; Move: Left
menu-1-1 =
menu-1-1-exec = i3-msg 'move left'
;; Move: Right
menu-1-2 =
menu-1-2-exec = i3-msg 'move right'
;; Move: Up
menu-1-3 =
menu-1-3-exec = i3-msg 'move up'
;; Move: Down
menu-1-4 = " "
menu-1-4-exec = i3-msg 'move down'
;; Layout: Back to main menu
menu-2-0 =
menu-2-0-exec = menu-open-0
;; Layout: Split
menu-2-1 =
menu-2-1-exec = i3-msg 'layout toggle split'
;; Layout: Stacking
menu-2-2 =
menu-2-2-exec = i3-msg 'layout stacking'
;; Layout: Tabbed
menu-2-3 =
menu-2-3-exec = i3-msg 'layout tabbed'
;; Layout: Toggle floating
menu-2-4 = " "
menu-2-4-exec = i3-msg 'floating toggle'
;; Split: Back to main menu
menu-3-0 =
menu-3-0-exec = menu-open-0
;; Split: Vertical
menu-3-1 =
menu-3-1-exec = i3-msg 'split v'
;; Split: Horizontal
menu-3-2 = " "
menu-3-2-exec = i3-msg 'split h'
;; Resize: Back to main menu
menu-4-0 =
menu-4-0-exec = menu-open-0
;; Resize: Grow height
menu-4-1 =
menu-4444-1-exec = i3-msg 'resize grow height 5 px or 5 ppt'
;; Resize: Shrink height
menu-4-2 =
menu-4-2-exec = i3-msg 'resize shrink height 5 px or 5 ppt'
;; Resize: Grow width
menu-4-3 =
menu-4-3-exec = i3-msg 'resize grow width 5 px or 5 ppt'
;; Resize: Shrink width
menu-4-4 = " "
menu-4-4-exec = i3-msg 'resize shrink width 5 px or 5 ppt'
;; Move to workspace: Back to main menu
menu-5-0 =
menu-5-0-exec = menu-open-0
;; Move to workspace: 1
menu-5-1 = 1
menu-5-1-exec = i3-msg 'move container to workspace 1'
;; Move to workspace: 2
menu-5-2 = 2
menu-5-2-exec = i3-msg 'move container to workspace 2'
;; Move to workspace: 3
menu-5-3 = 3
menu-5-3-exec = i3-msg 'move container to workspace 3'
;; Move to workspace: 4
menu-5-4 = 4
menu-5-4-exec = i3-msg 'move container to workspace 4'
;; Move to workspace: 5
menu-5-5 = 5
menu-5-5-exec = i3-msg 'move container to workspace 5'
;; Move to workspace: 6
menu-5-6 = 6
menu-5-6-exec = i3-msg 'move container to workspace 6'
;; Move to workspace: 7
menu-5-7 = 7
menu-5-7-exec = i3-msg 'move container to workspace 7'
;; Move to workspace: 8
menu-5-8 = 8
menu-5-8-exec = i3-msg 'move container to workspace 8'
;; Move to workspace: 9
menu-5-9 = 9
menu-5-9-exec = i3-msg 'move container to workspace 9'
;; Move to workspace: 10
menu-5-10 = "10 "
menu-5-10-exec = i3-msg 'move container to workspace 10'
;; Kill: Back to main menu
menu-6-0 =
menu-6-0-exec = menu-open-0
;; Kill: Kill
menu-6-1 = "You sure?  "
menu-6-1-exec = i3-msg 'kill'

408
test Normal file
View File

@ -0,0 +1,408 @@
[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: chromium
menu-1-1=
menu-1-1-exec= chromium &
:: Launcher: urxvt
menu-1-2=" "
menu-1-2-exec = urxvt &
;; 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 = i3lock
;; 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/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: chromium
menu-1-1=
menu-1-1-exec= chromium &
:: Launcher: urxvt
menu-1-2=" "
menu-1-2-exec = urxvt &
;; 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 = i3lock
;; Power: Reboot
menu-8-3 = 
menu-8-3-exec = shutdown -r now
;; Power: Shutdown
menu-8-4 = " "
menu-8-4-exec = shutdown -h now