wpg templates etc.

This commit is contained in:
Harri Lahtinen 2019-07-18 16:35:16 +03:00
parent 6edc41d678
commit 437de191af
5 changed files with 719 additions and 12 deletions

View File

@ -114,8 +114,8 @@ blur-strength = 15;
opacity-rule = [
"85:class_g = 'St' && focused",
"60:class_g = 'St' && !focused",
"70:name *?= 'rofi'"
"60:class_g = 'St' && !focused"
# "70:name *?= 'rofi'"
];
# Dim inactive windows. (0.0 - 1.0)

View File

@ -8,18 +8,18 @@
background = #00000000
;background = ${xrdb:color12:#AD9161}
;background = #8a8061
background-alt = #061E28
background-alt = #03080B
;foreground = ${xrdb:color7}
foreground = #6C6044
foreground-alt = #6C6044
highlight = #bdaf97
foreground = #91B5B9
foreground-alt = #91B5B9
highlight = #c6eff1
;error = ${xrdb:color9:#DD712E}
error = #1B4446
red = #1B4446
yellow = #2B6963
green = #4F5044
blue = #264D4C
alert = #1B4446
error = #1399A8
red = #1399A8
yellow = #24D7E2
green = #5DE7ED
blue = #30AEBE
alert = #1399A8
[bar/top]
monitor = ${env:MONITOR:eDP-1}

View File

@ -0,0 +1,523 @@
; vim:ft=dosini
; _ _ _ _
; |_)/ \|\_/|_) /\ |_)
; | \_/|_| |_)/--\| \
;
[colors]
;Transparent background
background = #00000000
;background = ${{xrdb:color12:#AD9161}}
;background = #8a8061
background-alt = {color0}
;foreground = ${{xrdb:color7}}
foreground = {color6}
foreground-alt = {color14}
highlight = {color7}
;error = ${{xrdb:color9:#DD712E}}
error = {color2}
red = {color10}
yellow = {color12}
green = {color5}
blue = {color11}
alert = {color10}
[bar/top]
monitor = ${{env:MONITOR:eDP-1}}
include-file = ~/.config/polybar/top-bar
modules-left = i3
modules-center = term chrome editor fm music vpn
modules-right = wlan pkg pulseaudio battery backlight networkmanager popup-calendar
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
[bar/bottom]
monitor = ${{env:MONITOR:eDP-1}}
include-file = ~/.config/polybar/bottom-bar
modules-left = hostname vpncheck
modules-center = cpu memory temperature
modules-right = openweather
[module/pulseaudio-rofi-output]
type = custom/script
exec = ~/.config/Scripts/pulseaudio-rofi.sh --output_volume_listener
tail = true
click-right = ~/.config/Scripts/pulseaudio-rofi.sh --output
click-left = ~/.config/Scripts/pulseaudio-rofi.sh --mute
scroll-up = ~/.config/Scripts/pulseaudio-rofi.sh --volume_up
scroll-down = ~/.config/Scripts/pulseaudio-rofi.sh --volume_down
[module/pulseaudio]
type = internal/pulseaudio
sink = bluez_sink.E8_07_BF_33_4D_F2.headset_head_unit
use-ui-max = true
interval = 5
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${{root.foreground}}
format-muted = <label-muted>
format-muted-foreground = ${{colors.highlight}}
label-muted =  muted
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-foreground = ${{colors.foreground}}
ramp-headphones-0 = 
ramp-headphones-1 = 
[module/backlight]
type = custom/script
interval = 0.2
exec = ~/.config/Scripts/backlight.sh
scroll-up = exec light -A 5
scroll-down = exec light -U 5
format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
label = %output%
label-foreground = ${{colors.foreground}}
format-padding = 1
;[module/backlight]
;type = internal/xbacklight
;output = eDP-1
;enable-scroll = true
;format = <ramp> <label>
;label = %percentage%%
;ramp-0 = 
;ramp-1 = 
;ramp-2 = 
;bar-width = 10
;bar-indicator = |
;bar-fill = ─
;bar-empty = ─
[module/popup-calendar]
type = custom/script
exec = ~/.config/Scripts/popup-calendar.sh
interval = 5
click-left = ~/.config/Scripts/popup-calendar.sh --popup
[module/vpncheck]
type = custom/script
exec = pgrep openvpn
interval = 5
label = VPN
;format-underline = ${{colors.alert}}
format-prefix = " "
[module/hostname]
type = custom/script
interval = 256
format = "<label> "
format-prefix = " "
;format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
exec = echo "$(uname -nr)"
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 65
format = <ramp> <label>
format-underline = ${{colors.foreground-alt}}
;format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${{self.format-underline}}
label = %temperature-c%
label-warn =  %temperature-c%
label-warn-foreground = ${{colors.alert}}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-foreground = ${{colors.foreground}}
[module/pkg]
type = custom/script
exec = "~/.config/Scripts/arch-updates.sh -s"
tail = true
format = <label>
format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
click-left = st -e yay --noconfirm -Syu
click-right = "~/.config/Scripts/arch-updates.sh -c&"
click-middle = "~/.config/Scripts/arch-updates.sh -n"
[module/openweather]
type = custom/script
exec = ~/.config/Scripts/openweather.sh
tail = true
interval = 600
click-left = ~/.config/Scripts/wttr.sh
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
ws-icon-0 = 1:;
ws-icon-1 = 2:;
ws-icon-2 = 3:;
ws-icon-3 = 4:;
ws-icon-4 = 5:;
ws-icon-5 = 6:;
ws-icon-6 = 7:;
ws-icon-7 = 8:;
ws-icon-8 = 9:;
ws-icon-9 = 10:;
label-mode-padding = 1
label-mode-foreground = ${{colors.foreground}}
label-mode-background = ${{colors.background}}
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-foreground = ${{colors.foreground}}
label-focused-background = ${{colors.background}}
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-foreground = ${{colors.foreground}}
label-unfocused-background = ${{colors.background}}
label-unfocused-padding = 1
; urgent = Workspace with urgency hint set
label-urgent = %icon%
label-urgent-background = ${{colors.alert}}
label-urgent-padding = 1
[module/kraken]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = gitkraken &
[module/fx]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = firefox &
[module/fm]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = st -e ranger &
click-right = pcmanfm &
[module/term]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = st &
click-right = st -e tmux new -s tmux1 &
[module/vpn]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = "exec expressvpn connect"
click-right = "exec expressvpn disconnect"
[module/editor]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = st -e nvim &
click-right = leafpad &
[module/chrome]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = google-chrome-stable &
[module/music]
type = custom/text
content = 
content-foreground = ${{colors.foreground}}
click-left = st -e ncmpcpp &
click-right = gpmdp &
[module/gpmdp]
type = custom/script
format = <label>
;format-underline = ${{xrdb:color5}}
exec = ~/.config/Scripts/gpmdp-remote info
[module/workspace]
type = custom/script
interval = 1
label = %{{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))":}}%{{A5:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)-1))":}}%output% %{{A}}%{{A}}
exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
format = <label>
format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}}
[module/window_count]
type = custom/script
interval = 1
label = %{{A1:rofi -width 30 -location 1 -xoffset 3 -show window:}}%output% %{{A}}
exec = echo "$(($(lsw | wc -l)-1))"
format = <label>
format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}}
[module/xtitle]
type = custom/script
interval = 1
label = %output%
label-maxlen = 40
exec = echo "$(xtitle)"
format = <label>
format-background = ${{colors.background-alt}}
format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
format-padding = 1
[module/mpd]
type = internal/mpd
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <label-song>
format-online-prefix = " "
format-online-prefix-foreground = ${{colors.foreground-alt}}
fomat-online-foreground = ${{colors.blue}}
format-online-background = ${{colors.background-alt}}
format-online-padding = 1
icon-play = 
icon-pause = 
icon-stop = 
icon-prev = 
icon-next = 
icon-random = 
label-song = %title%
label-song-maxlen = 25
label-song-ellipsis = true
toggle-on-foreground = ${{colors.foreground}}
toggle-off-foreground = ${{colors.foreground-alt}}
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}}
label-layout = %layout%
label-indicator-padding = 1
label-indicator-margin = 1
label-indicator-foreground = ${{colors.red}}
label-indicator-background = ${{colors.background}}
[module/cpu]
type = internal/cpu
interval = 1
format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
label = %{{A1:st --geometry 86x10 -e htop:}}%percentage%%%{{A}}
[module/memory]
type = internal/memory
interval = 1
format-prefix = " "
format-prefix-foreground = ${{colors.foreground}}
label = %{{A1:st --geometry 86x10 -e htop:}}%percentage_used%%%{{A}}
[module/date]
type = custom/script
interval = 60
exec = echo "$(date +%a) $(date +%d) $(date +%b)"
format = <label>
format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}}
label = %{{A1:gsimplecal &:}}%output%%{{A}}
[module/clock]
type = custom/script
interval = 5
exec = echo "$(date +%R)"
format = <label>
;format-prefix = " "
format-foreground = ${{colors.foreground-alt}}
label = %{{A1:gsimplecal &:}}%output%%{{A}}
[module/volume]
type = internal/volume
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${{root.foreground}}
format-muted = <label-muted>
format-muted-foreground = ${{colors.foreground-alt}}
label-muted =  muted
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-foreground = ${{colors.foreground-alt}}
[module/alsa]
type = internal/alsa
master-soundcard = default
speaker-soundcard = default
headphone-soundcard = default
master-mixer = Master
speaker-mixer = Speaker
headphone-mixer = Headphone
headphone-id = 19
mapped = true
interval = 5
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${{root.foreground}}
format-muted = <label-muted>
format-muted-foreground = ${{colors.foreground-alt}}
label-muted =  muted
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-foreground = ${{colors.foreground-alt}}
ramp-headphones-0 = 
ramp-headphones-1 = 
[module/battery1]
type = internal/battery
battery = BAT1
adapter = ADP1
full-at = 98
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full-prefix = " "
format-full-prefix-foreground = ${{colors.foreground}}
ramp-capacity-0-foreground = ${{colors.alert}}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-foreground = ${{colors.foreground}}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${{colors.foreground}}
animation-charging-framerate = 750
[module/battery]
type = internal/battery
battery = BAT1
adapter = ADP1
full-at = 98
time-format = %H:%M
label-charging = %percentage%%
label-discharging = %percentage%%
format-charging = <animation-charging> <label-charging>
format-discharging = <animation-discharging> <label-discharging>
format-charging-foreground = ${{colors.foreground}}
label-charging-foreground = ${{colors.foreground}}
format-discharging-foreground = ${{colors.foreground}}
label-discharging-foreground = ${{colors.foreground}}
format-full-prefix = " "
format-full-prefix-foreground = ${{colors.foreground}}
label-full-foreground = ${{colors.foreground}}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-foreground = ${{colors.foreground}}
animation-charging-framerate = 500
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-3 = 
animation-discharging-4 = 
animation-discharging-framerate = 1000
animation-discharging-foreground = ${{colors.foreground}}
[module/networkmanager]
type = custom/text
content = net 
content-foreground = ${{colors.foreground}}
click-left = networkmanager_dmenu
[module/eth]
type = internal/network
interface = enp0s25
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = ${{colors.foreground-alt}}
format-disconnected = <label-disconnected>
label-connected = %{{A1:networkmanager_dmenu:}}%downspeed%%{{A}}
label-connected-foreground = ${{colors.foreground}}
label-disconnected =
;[module/wlan]
;type = internal/network
;interface = wlp2s0
;interval = 3.0
;format-connected = <label-connected>
;format-connected-prefix = " "
;format-connected-prefix-foreground = ${{colors.foreground-alt}}
;format-disconnected = <label-disconnected>
;label-connected = %{{A1:networkmanager_dmenu:}}%downspeed%%{{A}} %essid%
;label-connected-foreground = ${{colors.foreground}}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${{colors.foreground-alt}}
[module/wlan]
type = internal/network
interface = wlp2s0
interval = 3.0
format-connected = <label-connected>
label-connected =  %essid%  %signal%  %upspeed%  %downspeed%
label-disconnected = "%{{A1:connman-gtk &:}}%{{A}}"
label-disconnected-foreground = #5b
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${{colors.foreground}}
format-connected-foreground = ${{colors.foreground}}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-font = 2
label-open-foreground = ${{colors.red}}
label-close = 
label-close-foreground = ${{colors.foreground}}
label-separator = |
label-separator-foreground = ${{colors.foreground-alt}}
menu-0-0 = 
menu-0-0-foreground = ${{colors.blue}}
menu-0-0-exec = menu-open-1
menu-0-1 = 
menu-0-1-foreground = ${{colors.red}}
menu-0-1-exec = menu-open-2
menu-1-0 = reboot?
menu-1-0-exec = /sbin/reboot
menu-1-1 = 
menu-1-1-exec = menu-open-0
menu-2-0 = 
menu-2-0-exec = menu-open-0
menu-2-1 = shutdown?
menu-2-1-exec = /sbin/poweroff
[module/mail]
type = custom/script
interval = 30
format = <label>
format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}}
exec = ~/.config/Scripts/mail.sh
click-left = chromium https://inbox.google.com &
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;[global/wm]
;margin-top = 0
;margin-bottom = 0

View File

@ -0,0 +1,161 @@
* {{
active-background: {color2};
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: {color1};
urgent-foreground: @foreground;
alternate-active-background: @background;
alternate-active-foreground: @foreground;
alternate-normal-background: @background;
alternate-normal-foreground: @foreground;
alternate-urgent-background: @background;
alternate-urgent-foreground: @foreground;
selected-active-background: {color1};
selected-active-foreground: @foreground;
selected-normal-background: {color2};
selected-normal-foreground: @foreground;
selected-urgent-background: {color11};
selected-urgent-foreground: @foreground;
background-color: @background;
background: {color0};
foreground: {color7};
border-color: @background;
spacing: 2;
}}
#window {{
background-color: @background;
border: 0;
padding: 2.5ch;
}}
#mainbox {{
border: 0;
padding: 0;
}}
#message {{
border: 2px 0px 0px;
border-color: @border-color;
padding: 1px;
}}
#textbox {{
text-color: @foreground;
}}
inputbar {{
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
}}
textbox-prompt-colon {{
expand: false;
str: ":";
margin: 0px 0.3em 0em 0em;
text-color: @normal-foreground;
}}
#listview {{
fixed-height: 0;
border: 2px 0px 0px;
border-color: @border-color;
spacing: 2px;
scrollbar: true;
padding: 2px 0px 0px;
}}
#element {{
border: 0;
padding: 1px;
}}
#element.normal.normal {{
background-color: @normal-background;
text-color: @normal-foreground;
}}
#element.normal.urgent {{
background-color: @urgent-background;
text-color: @urgent-foreground;
}}
#element.normal.active {{
background-color: @active-background;
text-color: @active-foreground;
}}
#element.selected.normal {{
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}}
#element.selected.urgent {{
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}}
#element.selected.active {{
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}}
#element.alternate.normal {{
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}}
#element.alternate.urgent {{
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}}
#element.alternate.active {{
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}}
#scrollbar {{
width: 4px;
border: 0;
handle-width: 8px;
padding: 0;
}}
#sidebar {{
border: 2px 0px 0px;
border-color: @border-color;
}}
#button {{
text-color: @normal-foreground;
}}
#button.selected {{
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}}
#inputbar {{
spacing: 0;
text-color: @normal-foreground;
padding: 1px;
}}
#case-indicator {{
spacing: 0;
text-color: @normal-foreground;
}}
#entry {{
spacing: 0;
text-color: @normal-foreground;
}}
#prompt {{
spacing: 0;
text-color: @normal-foreground;
}}

View File

@ -0,0 +1,23 @@
rofi.color-normal: #fbf8f1, #2A1A17, #fbf8f1, #ff923b, #2A1A17
rofi.color-urgent: #fbf8f1, #d6b48d, #22231D, #d6b48d, #2A1A17
rofi.color-active: #fbf8f1, #E1B959, #fbf8f1, #E1B959, #fbf8f1
rofi.color-window: #fbf8f1, #ff923b, #DD712E
rofi.font:{font0} 12
rofi.color-enabled: true
rofi.fake-transparency: true
rofi.lines: 20
rofi.bw: 0
rofi.opacity: "10"
rofi.hide-scrollbar: true
rofi.width: 30
rofi.modi: window,run,ssh,drun,i3:~/.config/Scripts/i3_switch_workspace.sh
rofi.sidebar-mode: true
rofi.terminal: st
rofi.levenshtein-sort: true
rofi.separator-style: dash
rofi.show-icons: true
# Dark theme.
rofi.theme: ~/.config/rofi/colors-rofi-dark.rasi