Compare commits
4 Commits
c68185b65d
...
fad7155a79
Author | SHA1 | Date |
---|---|---|
|
fad7155a79 | |
|
64065b94cc | |
|
d09d43071f | |
|
dd204af083 |
|
@ -0,0 +1,6 @@
|
|||
governor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
||||
if [[ $governor == "powersave" ]]; then
|
||||
sudo /opt/power/performance.sh
|
||||
else
|
||||
sudo /opt/power/powersave.sh
|
||||
fi
|
89
i3/config
89
i3/config
|
@ -1,25 +1,27 @@
|
|||
set $mod Mod4
|
||||
font pango:monospace 8
|
||||
font pango:monospace 0
|
||||
|
||||
# exec --no-startup-id dex --autostart --environment i3
|
||||
#
|
||||
# # The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||
# # they are included here as an example. Modify as you see fit.
|
||||
#
|
||||
# # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
||||
# # screen before suspend. Use loginctl lock-session to lock your screen.
|
||||
# exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
#
|
||||
exec --no-startup-id "feh --no-fehbg --bg-fill /home/user/.config/awesome/wallpaper/wallpaper.png"
|
||||
|
||||
exec --no-startup-id "picom -b"
|
||||
exec --no-startup-id "polybar &"
|
||||
exec --no-startup-id "nm-applet &"
|
||||
exec --no-startup-id "xmodmap /home/user/.Xmodmap"
|
||||
exec --no-startup-id xcape -e "Super_L=Super_L|XF86Launch5" -t 5000
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
bindsym --whole-window --border button7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +2%
|
||||
bindsym --whole-window --border button6 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -2%
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
bindsym XF86AudioNext exec --no-startup-id playerctl next
|
||||
bindsym XF86AudioPrevious exec --no-startup-id playerctl previous
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s 10%+
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 10%-
|
||||
bindsym ctrl+Mod2+Mod4+q exec systemctl suspend
|
||||
|
||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
@ -29,15 +31,24 @@ floating_modifier $mod
|
|||
tiling_drag modifier titlebar
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec alacritty
|
||||
bindsym $mod+Return exec /home/user/.config/awesome/scripts/launch_alacritty.sh $(xprop -id $(xdotool getwindowfocus) | ag ^_NET_WM_PID | cut -d '=' -f 2)
|
||||
|
||||
bindsym $mod+minus split v; exec /home/user/.config/awesome/scripts/launch_alacritty.sh $(xprop -id $(xdotool getwindowfocus) | ag ^_NET_WM_PID | cut -d '=' -f 2)
|
||||
|
||||
bindsym $mod+bar split h; exec /home/user/.config/awesome/scripts/launch_alacritty.sh $(xprop -id $(xdotool getwindowfocus) | ag ^_NET_WM_PID | cut -d '=' -f 2)
|
||||
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec "~/.config/awesome/scripts/toggle_rofi.sh"
|
||||
bindsym $mod+XF86Launch5 exec "~/.config/awesome/scripts/toggle_rofi.sh"
|
||||
bindsym $mod+Escape exec "rofi -show power-menu -modi power-menu:~/.config/awesome/scripts/rofi-power-menu"
|
||||
bindsym XF86PowerOff exec "rofi -show power-menu -modi power-menu:~/.config/awesome/scripts/rofi-power-menu"
|
||||
bindsym $mod+c exec CM_LAUNCHER=rofi-script rofi -modi "clipmenu:/usr/bin/clipmenu" -show clipmenu
|
||||
bindsym $mod+b exec firefox
|
||||
bindsym $mod+a exec nautilus
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
|
@ -69,13 +80,8 @@ bindsym $mod+ctrl+h split h
|
|||
# split in vertical orientation
|
||||
bindsym $mod+ctrl+v split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym $mod+m fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
bindsym $mod+m layout toggle stacked split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+f floating toggle
|
||||
|
@ -83,9 +89,6 @@ bindsym $mod+f floating toggle
|
|||
# change focus between tiling / floating windows
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# focus the parent container
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# focus the child container
|
||||
#bindsym $mod+d focus child
|
||||
|
||||
|
@ -115,23 +118,21 @@ bindsym $mod+9 workspace number $ws9
|
|||
bindsym $mod+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1; workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2; workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3; workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4; workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5; workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6; workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7; workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8; workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9; workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10; workspace number $ws10
|
||||
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||
bindsym $mod+Shift+r restart
|
||||
# exit i3 (logs you out of your X session)
|
||||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
|
@ -158,8 +159,12 @@ mode "resize" {
|
|||
bindsym $mod+r mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
# Colors
|
||||
client.focused #00000000 #00000000 #ffffff #2e9ef4 #002F5F
|
||||
client.unfocused #00000000 #00000000 #ffffff #2e9ef4 #00000000
|
||||
client.focused_inactive #00000000 #00000000 #ffffff #484e50 #00000000
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Hide the title bar
|
||||
default_border pixel 2
|
||||
|
@ -168,9 +173,3 @@ default_floating_border pixel 2
|
|||
# Useless gapps
|
||||
gaps inner 5
|
||||
smart_gaps on
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3status
|
||||
}
|
||||
|
|
|
@ -132,7 +132,7 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
|||
# example:
|
||||
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||
#
|
||||
# opacity-rule = []
|
||||
opacity-rule = ["0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'",]
|
||||
|
||||
|
||||
#################################
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
;==========================================================
|
||||
; Color theme
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
background = #1f2430
|
||||
blue = #002F5F
|
||||
red = #802929
|
||||
green = #427241
|
||||
yellow = #dbd759
|
||||
black = #000000
|
||||
white = #ffffff
|
||||
gray = #808080
|
|
@ -0,0 +1,179 @@
|
|||
;==========================================================
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
; Include powerline utility
|
||||
include-file = ~/.config/polybar/powerline-for-polybar.config
|
||||
|
||||
; Include color scheme
|
||||
include-file = ~/.config/polybar/colors.config
|
||||
|
||||
;=======================================
|
||||
; Bar
|
||||
;=======================================
|
||||
|
||||
[bar/example]
|
||||
; Generic options
|
||||
width = 100%
|
||||
height = 26
|
||||
dpi-x = 96
|
||||
dpi-y = 96
|
||||
|
||||
tray-position = right
|
||||
tray-background = ${colors.blue}
|
||||
tray-offset-x = -4
|
||||
tray-padding = 7
|
||||
|
||||
; Set bar's default background/foreground color
|
||||
background = #9912151c
|
||||
foreground = ${colors.white}
|
||||
|
||||
; Set bar's fonts list
|
||||
font-0 = "Noto Sans:size=10.5:antialias=true;3"
|
||||
font-1 = "Source Code Pro:pixelsize=20:antialias=true;6"
|
||||
font-2 = "Source Code Pro:size=11:weight=bold:antialias=true;3"
|
||||
font-3 = "Font Awesome 6 Free Solid:size=11:antialias=true;3"
|
||||
font-4 = "Font Awesome 6 Free:size=11:antialias=true;3"
|
||||
font-5 = "Font Awesome 6 Brands:size=11:antialias=true;3"
|
||||
font-6 = "Font Awesome v4 Compatibility:size=11:antialias=true;3"
|
||||
|
||||
; Set modules list
|
||||
modules-left = xwindow
|
||||
modules-center = i3
|
||||
modules-right = date governor temperature memory clockspeed cpu pulseaudio battery startarrow
|
||||
fixed-center = true
|
||||
|
||||
;=======================================
|
||||
; Modules
|
||||
;=======================================
|
||||
[module/startarrow]
|
||||
inherit = powerline-modules/right-to-left-starting-arrow
|
||||
background = ${colors.blue}
|
||||
background-next = ${colors.background}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.blue}
|
||||
background-next = ${colors.background}
|
||||
label-muted-foreground = ${colors.gray}
|
||||
format-foreground = ${colors.white}
|
||||
format-volume-background = ${colors.blue}
|
||||
format-muted-background = ${colors.blue}
|
||||
format-volume = " <ramp-volume> <label-volume> "
|
||||
format-muted = " <label-volume> "
|
||||
ramp-volume-0 = 🔈
|
||||
ramp-volume-1 = 🔊
|
||||
|
||||
[module/date]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.blue}
|
||||
background-next = ${root.background}
|
||||
; Other settings
|
||||
type = internal/date
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
date = " %a %b %d, %H:%M:%S "
|
||||
|
||||
[module/cpu]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.background}
|
||||
background-next = ${colors.blue}
|
||||
; Other settings
|
||||
type = internal/cpu
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
label = " CPU %percentage%% "
|
||||
|
||||
[module/memory]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.background}
|
||||
background-next = ${colors.blue}
|
||||
; Other settings
|
||||
type = internal/memory
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
label = " %gb_used% "
|
||||
|
||||
[module/clockspeed]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.blue}
|
||||
background-next = ${colors.background}
|
||||
; Other settings
|
||||
type = custom/script
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
format-warn-background = ${self.background}
|
||||
exec = cat /proc/cpuinfo | grep MHz | cut -b 12- | sort -r | head -n 1 | xargs printf '%f / 1000\\n' | bc -l | awk '{printf "%.2f\\n", $0}'
|
||||
format = " <label> GHz "
|
||||
|
||||
[module/temperature]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.blue}
|
||||
background-next = ${colors.background}
|
||||
; Other settings
|
||||
type = custom/script
|
||||
format-background = ${colors.blue}
|
||||
format-foreground = ${colors.white}
|
||||
format-warn-background = ${self.background}
|
||||
exec = sensors | grep Package | cut -d ' ' -f 5 | cut -d '+' -f 2
|
||||
format = " <label> "
|
||||
|
||||
[module/governor]
|
||||
; Powerline settings
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.background}
|
||||
background-next = ${colors.blue}
|
||||
; Other settings
|
||||
type = custom/script
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
format-warn-background = ${self.background}
|
||||
exec = cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
format = " <label> "
|
||||
click-left = /home/user/.config/awesome/scripts/toggle_performance.sh
|
||||
|
||||
[module/xwindow]
|
||||
; Other settings
|
||||
type = internal/xwindow
|
||||
inherit = powerline-templates/left-to-right-item
|
||||
background = ${colors.blue}
|
||||
background-next = ${root.background}
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
label = " %title% "
|
||||
label-maxlen = 80
|
||||
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
pin-workspaces = true
|
||||
show-urgent = true
|
||||
index-sort = true
|
||||
enable-click = true
|
||||
label-unfocused-padding = 3
|
||||
label-focused-background = ${colors.blue}
|
||||
label-focused-padding = 3
|
||||
label-focused-font=3
|
||||
label-unfocused-font=3
|
||||
label-separator-padding = 2
|
||||
label-focused = %index%
|
||||
label-unfocused = %index%
|
||||
label-mode = %mode%
|
||||
label-mode-padding = 3
|
||||
label-mode-background = ${colors.blue}
|
||||
|
||||
[module/battery]
|
||||
type = custom/script
|
||||
inherit = powerline-templates/right-to-left-item
|
||||
background = ${colors.background}
|
||||
background-next = ${colors.blue}
|
||||
format-background = ${self.background}
|
||||
format-foreground = ${colors.white}
|
||||
exec = upower -i /org/freedesktop/UPower/devices/battery_BAT1 | ag percentage | awk '{print $2}'
|
||||
format = " <label> "
|
|
@ -0,0 +1,448 @@
|
|||
; ============================================================================ ;
|
||||
;
|
||||
; POWERLINE FOR POLYBAR - powerline-for-polybar.config
|
||||
;
|
||||
; ---------------------------------------------------------------------------- ;
|
||||
;
|
||||
; This file contains all the necessary stuff to build your own, Powerline-based,
|
||||
; fancy Polybar setup.
|
||||
;
|
||||
; ---------------------------------------------------------------------------- ;
|
||||
;
|
||||
; All provided templates are documented in this file, with a description and
|
||||
; the usage syntax.
|
||||
;
|
||||
; ============================================================================ ;
|
||||
|
||||
; ============================================================================
|
||||
;
|
||||
; :: STAND-ALONE MODULES ::
|
||||
;
|
||||
; ============================================================================ ;
|
||||
|
||||
; ============================================================================ ;
|
||||
; modules :: left-to-right
|
||||
; ============================================================================ ;
|
||||
;
|
||||
; # Left-to-right starting arrow
|
||||
;
|
||||
; Display a starting arrow at the beginning of a left-to-right line.
|
||||
;
|
||||
; NOTE: You may want to add customized content here. DON'T ! Use a regular,
|
||||
; left-to-right-item for this purpose. Background and foreground colors
|
||||
; are set on a per module basis.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mystartingarrow]
|
||||
; inherit = powerline-modules/left-to-right-starting-arrow
|
||||
; background = #rrggbb
|
||||
; background-next = #rrggbb
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Color of starting arrow. People often wants this to match
|
||||
; the main theme color.
|
||||
; background-next Background color of first item in line.
|
||||
;
|
||||
[powerline-modules/left-to-right-starting-arrow]
|
||||
type = custom/text
|
||||
content-background = ${self.background-next}
|
||||
content-foreground = ${self.background}
|
||||
content = ""
|
||||
|
||||
;
|
||||
; # Left-to-right end-of-line separator
|
||||
;
|
||||
; Display a final arrow to nicely end your line with separators.
|
||||
;
|
||||
; Usage:
|
||||
; [module/myendingarrow]
|
||||
; inherit = powerline-modules/left-to-right-end-of-line-separator
|
||||
; separator = #rrggbb
|
||||
;
|
||||
; Mandatory settings:
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-modules/left-to-right-end-of-line-separator]
|
||||
type = custom/text
|
||||
content-foreground = ${self.separator}
|
||||
content = ""
|
||||
|
||||
; ============================================================================ ;
|
||||
; modules :: right-to-left
|
||||
; ============================================================================ ;
|
||||
|
||||
;
|
||||
; # Right-to-left starting arrow
|
||||
;
|
||||
; Display a starting arrow at the beginning of a right-to-left line.
|
||||
;
|
||||
; NOTE: You may want to add customized content here. DON'T ! Use a regular,
|
||||
; right-to-left-item for this purpose. Background and foreground colors
|
||||
; are set on a per module basis.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mystartingarrow]
|
||||
; inherit = powerline-modules/right-to-left-starting-arrow
|
||||
; background = #rrggbb
|
||||
; background-next = #rrggbb
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Color of starting arrow. People often wants this to match
|
||||
; the main theme color.
|
||||
; background-next Background color of first item in line.
|
||||
;
|
||||
[powerline-modules/right-to-left-starting-arrow]
|
||||
type = custom/text
|
||||
content-background = ${self.background-next}
|
||||
content-foreground = ${self.background}
|
||||
label-font = 1
|
||||
content = " "
|
||||
|
||||
;
|
||||
; # Right-to-left end-of-line separator
|
||||
;
|
||||
; Display a final arrow to nicely end your line with separators.
|
||||
;
|
||||
; Usage:
|
||||
; [module/myendingarrow]
|
||||
; inherit = powerline-modules/right-to-left-end-of-line-separator
|
||||
; separator = #rrggbb
|
||||
;
|
||||
; Mandatory settings:
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-modules/right-to-left-end-of-line-separator]
|
||||
type = custom/text
|
||||
content-foreground = ${self.separator}
|
||||
label-font = 1
|
||||
content = " "
|
||||
|
||||
; ============================================================================ ;
|
||||
;
|
||||
; :: MODULES TEMPLATES ::
|
||||
;
|
||||
; ============================================================================ ;
|
||||
|
||||
; ============================================================================ ;
|
||||
; templates :: left-to-right
|
||||
; ============================================================================ ;
|
||||
|
||||
;
|
||||
; # Left-to-right in-line item
|
||||
;
|
||||
; Display a left-to-right, in-line item.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mymodule]
|
||||
; inherit = powerline-templates/left-to-right-item
|
||||
; background = #rrggbb
|
||||
; background-next = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; background-next Background color of next item in line. Should be set on
|
||||
; ${root.background} if current item is last in line.
|
||||
;
|
||||
[powerline-templates/left-to-right-item]
|
||||
format-suffix-foreground = ${self.background}
|
||||
format-suffix-background = ${self.background-next}
|
||||
format-suffix = ""
|
||||
format-volume-suffix-foreground = ${self.background}
|
||||
format-volume-suffix-background = ${self.background-next}
|
||||
format-volume-suffix = ""
|
||||
format-muted-suffix-foreground = ${self.background}
|
||||
format-muted-suffix-background = ${self.background-next}
|
||||
format-muted-suffix = ""
|
||||
format-mounted-suffix-foreground = ${self.background}
|
||||
format-mounted-suffix-background = ${self.background-next}
|
||||
format-mounted-suffix = ""
|
||||
format-unmounted-suffix-foreground = ${self.background}
|
||||
format-unmounted-suffix-background = ${self.background-next}
|
||||
format-unmounted-suffix = ""
|
||||
format-connected-suffix-foreground = ${self.background}
|
||||
format-connected-suffix-background = ${self.background-next}
|
||||
format-connected-suffix = ""
|
||||
format-disconnected-suffix-foreground = ${self.background}
|
||||
format-disconnected-suffix-background = ${self.background-next}
|
||||
format-disconnected-suffix = ""
|
||||
content-suffix-foreground = ${self.background}
|
||||
content-suffix-background = ${self.background-next}
|
||||
content-suffix = ""
|
||||
|
||||
;
|
||||
; # Left-to-right in-line item with separator
|
||||
;
|
||||
; Display a left-to-right, in-line item with separator.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mymodule]
|
||||
; inherit = powerline-templates/left-to-right-item-with-separator
|
||||
; background = #rrggbb
|
||||
; separator = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-templates/left-to-right-item-with-separator]
|
||||
; Prefixes
|
||||
format-prefix-foreground = ${self.separator}
|
||||
format-prefix-background = ${self.background}
|
||||
format-prefix = ""
|
||||
format-volume-prefix-foreground = ${self.separator}
|
||||
format-volume-prefix-background = ${self.background}
|
||||
format-volume-prefix = ""
|
||||
format-muted-prefix-foreground = ${self.background}
|
||||
format-muted-prefix-background = ${self.separator}
|
||||
format-muted-prefix = ""
|
||||
format-mounted-prefix-foreground = ${self.separator}
|
||||
format-mounted-prefix-background = ${self.background}
|
||||
format-mounted-prefix = ""
|
||||
format-unmounted-prefix-foreground = ${self.separator}
|
||||
format-unmounted-prefix-background = ${self.background}
|
||||
format-unmounted-prefix = ""
|
||||
format-connected-prefix-foreground = ${self.separator}
|
||||
format-connected-prefix-background = ${self.background}
|
||||
format-connected-prefix = ""
|
||||
format-disconnected-prefix-foreground = ${self.separator}
|
||||
format-disconnected-prefix-background = ${self.background}
|
||||
format-disconnected-prefix = ""
|
||||
content-prefix-foreground = ${self.separator}
|
||||
content-prefix-background = ${self.background}
|
||||
content-prefix = ""
|
||||
; Suffixes
|
||||
format-suffix-foreground = ${self.background}
|
||||
format-suffix-background = ${self.separator}
|
||||
format-suffix = ""
|
||||
format-volume-suffix-foreground = ${self.background}
|
||||
format-volume-suffix-background = ${self.separator}
|
||||
format-volume-suffix = ""
|
||||
format-muted-suffix-foreground = ${self.separator}
|
||||
format-muted-suffix-background = ${self.background}
|
||||
format-muted-suffix = ""
|
||||
format-mounted-suffix-foreground = ${self.background}
|
||||
format-mounted-suffix-background = ${self.separator}
|
||||
format-mounted-suffix = ""
|
||||
format-unmounted-suffix-foreground = ${self.background}
|
||||
format-unmounted-suffix-background = ${self.separator}
|
||||
format-unmounted-suffix = ""
|
||||
format-connected-suffix-foreground = ${self.background}
|
||||
format-connected-suffix-background = ${self.separator}
|
||||
format-connected-suffix = ""
|
||||
format-disconnected-suffix-foreground = ${self.background}
|
||||
format-disconnected-suffix-background = ${self.separator}
|
||||
format-disconnected-suffix = ""
|
||||
content-suffix-foreground = ${self.background}
|
||||
content-suffix-background = ${self.separator}
|
||||
content-suffix = ""
|
||||
|
||||
;
|
||||
; # Left-to-right line-starting item with separator
|
||||
;
|
||||
; Display a left-to-right, *line starting* item with separator.
|
||||
;
|
||||
; NOTE: This template shall only be inherited by the leftmost item of a
|
||||
; left-to-right line with separators. It avoids the appearance
|
||||
; of a separating arrow half at the leftmost part of the item.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mystartingmodule]
|
||||
; inherit = powerline-templates/left-to-right-starting-item-with-separator
|
||||
; background = #rrggbb
|
||||
; separator = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-templates/left-to-right-starting-item-with-separator]
|
||||
; Suffixes needed only
|
||||
format-suffix-foreground = ${self.background}
|
||||
format-suffix-background = ${self.separator}
|
||||
format-suffix = ""
|
||||
format-volume-suffix-foreground = ${self.background}
|
||||
format-volume-suffix-background = ${self.separator}
|
||||
format-volume-suffix = ""
|
||||
format-muted-suffix-foreground = ${self.separator}
|
||||
format-muted-suffix-background = ${self.background}
|
||||
format-muted-suffix = ""
|
||||
format-mounted-suffix-foreground = ${self.background}
|
||||
format-mounted-suffix-background = ${self.separator}
|
||||
format-mounted-suffix = ""
|
||||
format-unmounted-suffix-foreground = ${self.background}
|
||||
format-unmounted-suffix-background = ${self.separator}
|
||||
format-unmounted-suffix = ""
|
||||
format-connected-suffix-foreground = ${self.background}
|
||||
format-connected-suffix-background = ${self.separator}
|
||||
format-connected-suffix = ""
|
||||
format-disconnected-suffix-foreground = ${self.background}
|
||||
format-disconnected-suffix-background = ${self.separator}
|
||||
format-disconnected-suffix = ""
|
||||
content-suffix-foreground = ${self.background}
|
||||
content-suffix-background = ${self.separator}
|
||||
content-suffix = ""
|
||||
|
||||
; ============================================================================ ;
|
||||
; templates :: right-to-left
|
||||
; ============================================================================ ;
|
||||
|
||||
;
|
||||
; # Right-to-left in-line item
|
||||
;
|
||||
; Display a right-to-left, in-line item.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mymodule]
|
||||
; inherit = powerline-templates/right-to-left-item
|
||||
; background = #rrggbb
|
||||
; background-next = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; background-next Background color of next item in line. Should be set on
|
||||
; ${root.background} if current item is last in line.
|
||||
;
|
||||
[powerline-templates/right-to-left-item]
|
||||
format-prefix-foreground = ${self.background}
|
||||
format-prefix-background = ${self.background-next}
|
||||
format-prefix = ""
|
||||
format-volume-prefix-foreground = ${self.background}
|
||||
format-volume-prefix-background = ${self.background-next}
|
||||
format-volume-prefix = ""
|
||||
format-muted-prefix-foreground = ${self.background}
|
||||
format-muted-prefix-background = ${self.background-next}
|
||||
format-muted-prefix = ""
|
||||
format-mounted-prefix-foreground = ${self.background}
|
||||
format-mounted-prefix-background = ${self.background-next}
|
||||
format-mounted-prefix = ""
|
||||
format-unmounted-prefix-foreground = ${self.background}
|
||||
format-unmounted-prefix-background = ${self.background-next}
|
||||
format-unmounted-prefix = ""
|
||||
format-connected-prefix-foreground = ${self.background}
|
||||
format-connected-prefix-background = ${self.background-next}
|
||||
format-connected-prefix = ""
|
||||
format-disconnected-prefix-foreground = ${self.background}
|
||||
format-disconnected-prefix-background = ${self.background-next}
|
||||
format-disconnected-prefix = ""
|
||||
content-prefix-foreground = ${self.background}
|
||||
content-prefix-background = ${self.background-next}
|
||||
content-prefix = ""
|
||||
|
||||
;
|
||||
; # Right-to-left in-line item with separator
|
||||
;
|
||||
; Display a right-to-left, in-line item with separator.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mymodule]
|
||||
; inherit = powerline-templates/right-to-left-item-with-separator
|
||||
; background = #rrggbb
|
||||
; separator = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-templates/right-to-left-item-with-separator]
|
||||
; Prefixes
|
||||
format-prefix-foreground = ${self.background}
|
||||
format-prefix-background = ${self.separator}
|
||||
format-prefix = ""
|
||||
format-volume-prefix-foreground = ${self.background}
|
||||
format-volume-prefix-background = ${self.separator}
|
||||
format-volume-prefix = ""
|
||||
format-muted-prefix-foreground = ${self.separator}
|
||||
format-muted-prefix-background = ${self.background}
|
||||
format-muted-prefix = ""
|
||||
format-mounted-prefix-foreground = ${self.background}
|
||||
format-mounted-prefix-background = ${self.separator}
|
||||
format-mounted-prefix = ""
|
||||
format-unmounted-prefix-foreground = ${self.background}
|
||||
format-unmounted-prefix-background = ${self.separator}
|
||||
format-unmounted-prefix = ""
|
||||
format-connected-prefix-foreground = ${self.background}
|
||||
format-connected-prefix-background = ${self.separator}
|
||||
format-connected-prefix = ""
|
||||
format-disconnected-prefix-foreground = ${self.background}
|
||||
format-disconnected-prefix-background = ${self.separator}
|
||||
format-disconnected-prefix = ""
|
||||
content-prefix-foreground = ${self.background}
|
||||
content-prefix-background = ${self.separator}
|
||||
content-prefix = ""
|
||||
; Suffixes
|
||||
format-suffix-foreground = ${self.separator}
|
||||
format-suffix-background = ${self.background}
|
||||
format-suffix = ""
|
||||
format-volume-suffix-foreground = ${self.separator}
|
||||
format-volume-suffix-background = ${self.background}
|
||||
format-volume-suffix = ""
|
||||
format-muted-suffix-foreground = ${self.background}
|
||||
format-muted-suffix-background = ${self.separator}
|
||||
format-muted-suffix = ""
|
||||
format-mounted-suffix-foreground = ${self.separator}
|
||||
format-mounted-suffix-background = ${self.background}
|
||||
format-mounted-suffix = ""
|
||||
format-unmounted-suffix-foreground = ${self.separator}
|
||||
format-unmounted-suffix-background = ${self.background}
|
||||
format-unmounted-suffix = ""
|
||||
format-connected-suffix-foreground = ${self.separator}
|
||||
format-connected-suffix-background = ${self.background}
|
||||
format-connected-suffix = ""
|
||||
format-disconnected-suffix-foreground = ${self.separator}
|
||||
format-disconnected-suffix-background = ${self.background}
|
||||
format-disconnected-suffix = ""
|
||||
content-suffix-foreground = ${self.separator}
|
||||
content-suffix-background = ${self.background}
|
||||
content-suffix = ""
|
||||
|
||||
;
|
||||
; # Right-to-left line-starting item with separator
|
||||
;
|
||||
; Display a right-to-left, *line starting* item with separator.
|
||||
;
|
||||
; NOTE: This template shall only be inherited by the rightmost item of a
|
||||
; right-to-left line with separators. It avoids the appearance
|
||||
; of a separating arrow half at the rightmost part of the item.
|
||||
;
|
||||
; Usage:
|
||||
; [module/mystartingmodule]
|
||||
; inherit = powerline-templates/right-to-left-starting-item-with-separator
|
||||
; background = #rrggbb
|
||||
; separator = #rrggbb
|
||||
; (...)
|
||||
;
|
||||
; Mandatory settings:
|
||||
; background Background color of current item
|
||||
; separator Color of line item separator.
|
||||
;
|
||||
[powerline-templates/right-to-left-starting-item-with-separator]
|
||||
; Prefixes needed only
|
||||
format-prefix-foreground = ${self.background}
|
||||
format-prefix-background = ${self.separator}
|
||||
format-prefix = ""
|
||||
format-volume-prefix-foreground = ${self.background}
|
||||
format-volume-prefix-background = ${self.separator}
|
||||
format-volume-prefix = ""
|
||||
format-muted-prefix-foreground = ${self.separator}
|
||||
format-muted-prefix-background = ${self.background}
|
||||
format-muted-prefix = ""
|
||||
format-mounted-prefix-foreground = ${self.background}
|
||||
format-mounted-prefix-background = ${self.separator}
|
||||
format-mounted-prefix = ""
|
||||
format-unmounted-prefix-foreground = ${self.background}
|
||||
format-unmounted-prefix-background = ${self.separator}
|
||||
format-unmounted-prefix = ""
|
||||
format-connected-prefix-foreground = ${self.background}
|
||||
format-connected-prefix-background = ${self.separator}
|
||||
format-connected-prefix = ""
|
||||
format-disconnected-prefix-foreground = ${self.background}
|
||||
format-disconnected-prefix-background = ${self.separator}
|
||||
format-disconnected-prefix = ""
|
||||
content-prefix-foreground = ${self.background}
|
||||
content-prefix-background = ${self.separator}
|
||||
content-prefix = ""
|
Loading…
Reference in New Issue