Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
c5788e2213
6 changed files with 310 additions and 2 deletions
|
|
@ -11,7 +11,14 @@ set $wm_setting_key_right l
|
|||
|
||||
set $wm_setting_font pango:Source Sans Pro, Semibold 11
|
||||
set $wm_setting_gap 10
|
||||
set $wm_setting_border_size 5
|
||||
set $wm_setting_border_size 4
|
||||
|
||||
#set $bar_setting_position top
|
||||
#set $bar_setting_mode dock
|
||||
#set $bar_setting_font pango:Source Sans Pro, Semibold 11
|
||||
#set $bar_setting_statusCommand i3status
|
||||
#set $bar_setting_trayoutput full
|
||||
#set $bar_setting_separator " - "
|
||||
|
||||
set $wm_setting_app_terminal kitty
|
||||
set $wm_setting_app_browser librewolf
|
||||
|
|
@ -26,6 +33,20 @@ set $wm_color_border_inactive_bg #111317
|
|||
set $wm_color_border_inactive_fg #111317
|
||||
set $wm_color_background #111317
|
||||
|
||||
#set $bar_color_background #11131799
|
||||
#set $bar_color_foreground #d7afaf
|
||||
#set $bar_color_statusline #d7afaf
|
||||
#set $bar_color_separator #D8DEE9
|
||||
|
||||
#set $bar_color_workspace_focused_bg #d7afaf
|
||||
#set $bar_color_workspace_focused_fg #111317
|
||||
#set $bar_color_workspace_active_bg #576176
|
||||
#set $bar_color_workspace_active_fg #111317
|
||||
#set $bar_color_workspace_inactive_bg #576176
|
||||
#set $bar_color_workspace_inactive_fg #111317
|
||||
#set $bar_color_workspace_urgent_bg #d75f87
|
||||
#set $bar_color_workspace_urgent_fg #111317
|
||||
|
||||
bindsym $mod+Return exec $wm_setting_app_terminal
|
||||
bindsym $mod+Shift+b exec $wm_setting_app_browser
|
||||
bindsym $mod+d exec $wm_setting_app_launcher
|
||||
|
|
@ -129,6 +150,52 @@ bindsym $mod+$smod+q kill
|
|||
|
||||
bindsym $mod+$smod+r restart
|
||||
|
||||
bindsym $mod+$smod+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'
|
||||
bindsym $mod+$smod+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'"
|
||||
|
||||
exec --no-startup-id feh --bg-fill ~/.config/i3/assets/wallpaper/wallpaper.jpg
|
||||
|
||||
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||
exec --no-startup-id xsettingsd
|
||||
|
||||
#bar {
|
||||
# i3bar_command i3bar --transparency
|
||||
# position $bar_setting_position
|
||||
# mode $bar_setting_mode
|
||||
# font $bar_setting_font
|
||||
# separator_symbol $bar_setting_separator
|
||||
# status_command $bar_setting_statusCommand
|
||||
# tray_output $bar_setting_trayoutput
|
||||
#
|
||||
# colors {
|
||||
# background $bar_color_background
|
||||
# statusline $bar_color_statusline
|
||||
# separator $bar_color_separator
|
||||
#
|
||||
# focused_workspace $bar_color_workspace_focused_bg $bar_color_workspace_focused_bg $bar_color_workspace_focused_fg
|
||||
# active_workspace $bar_color_workspace_active_bg $bar_color_workspace_active_bg $bar_color_workspace_active_fg
|
||||
# inactive_workspace $bar_color_workspace_inactive_bg $bar_color_workspace_inactive_bg $bar_color_workspace_inactive_fg
|
||||
# urgent_workspace $bar_color_workspace_urgent_bg $bar_color_workspace_urgent_bg $bar_color_workspace_urgent_fg
|
||||
# }
|
||||
#}
|
||||
|
||||
#bar {
|
||||
# i3bar_command i3bar --transparency
|
||||
# status_command i3status
|
||||
# id bar-0
|
||||
# position top
|
||||
# status_command i3status --config ~/.config/i3status/config
|
||||
# colors {
|
||||
# background #aaaaaa
|
||||
# statusline #ffffff
|
||||
# background #00000055
|
||||
# statusline #ffffff
|
||||
# separator #666666
|
||||
# focused_workspace #4c7899 #285577 #ffffff
|
||||
# active_workspace #333333 #5f676a #ffffff
|
||||
# inactive_workspace #333333 #222222 #888888
|
||||
# urgent_workspace #2f343a #900000 #ffffff
|
||||
# binding_mode #2f343a #900000 #ffffff
|
||||
# }
|
||||
#}
|
||||
|
||||
#exec_always i3bar
|
||||
|
|
|
|||
203
cosmo/config/polybar/config.ini
Normal file
203
cosmo/config/polybar/config.ini
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
|
||||
;==========================================================
|
||||
;
|
||||
;
|
||||
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||
;
|
||||
;
|
||||
; To learn more about how to configure Polybar
|
||||
; go to https://github.com/polybar/polybar
|
||||
;
|
||||
; The README contains a lot of information
|
||||
;
|
||||
;==========================================================
|
||||
|
||||
[colors]
|
||||
background = #aa111317
|
||||
background-alt = #55576176
|
||||
foreground = #d7afaf
|
||||
primary = #d7afaf
|
||||
secondary = #ffafaf
|
||||
alert = #d75f87
|
||||
disabled = #707880
|
||||
|
||||
[bar/status]
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 12
|
||||
|
||||
dpi = 120
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
|
||||
line-size = 3pt
|
||||
|
||||
border-top-size = 8pt
|
||||
border-left-size = 10pt
|
||||
border-right-size = 10pt
|
||||
border-bottom-size = 0pt
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 3
|
||||
padding-right = 4
|
||||
|
||||
module-margin = 1
|
||||
|
||||
separator = |
|
||||
separator-foreground = ${colors.disabled}
|
||||
|
||||
font-0 = Overpass Nerd Font Propo;2
|
||||
|
||||
modules-left = xworkspaces xwindow
|
||||
modules-right = battery pulseaudio brightness filesystem memory cpu wlan eth date tray
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
|
||||
enable-ipc = true
|
||||
|
||||
; tray-position = right
|
||||
|
||||
; wm-restack = generic
|
||||
; wm-restack = bspwm
|
||||
; wm-restack = i3
|
||||
|
||||
; override-redirect = true
|
||||
|
||||
[module/xworkspaces]
|
||||
type = internal/xworkspaces
|
||||
|
||||
label-active = %name%
|
||||
label-active-background = ${colors.background-alt}
|
||||
label-active-underline= ${colors.primary}
|
||||
label-active-padding = 2
|
||||
|
||||
label-occupied = %name%
|
||||
label-occupied-padding = 2
|
||||
|
||||
label-urgent = %name%
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 2
|
||||
|
||||
label-empty = %name%
|
||||
label-empty-foreground = ${colors.disabled}
|
||||
label-empty-padding = 2
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
label = %title:0:60:...%
|
||||
|
||||
[module/battery]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/battery-status.sh
|
||||
tail = false
|
||||
interval = 30
|
||||
label = %output%%
|
||||
|
||||
[module/filesystem]
|
||||
type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
|
||||
label-mounted = %{F#87af87} %{F-} %percentage_used%%
|
||||
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
sink = "inverted-module-droid-card"
|
||||
#format-volume-prefix = " "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <ramp-volume> <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = 0%
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
|
||||
ramp-volume-0 =
|
||||
ramp-volume-1 =
|
||||
ramp-volume-2 =
|
||||
|
||||
click-right = pavucontrol-qt --tab 3
|
||||
|
||||
[module/brightness]
|
||||
type = custom/script
|
||||
exec = $HOME/.config/polybar/scripts/brightness-monitor.sh
|
||||
tail = true
|
||||
label = %output%%
|
||||
|
||||
#[module/xkeyboard]
|
||||
#type = internal/xkeyboard
|
||||
#blacklist-0 = num lock
|
||||
|
||||
#label-layout = %layout%
|
||||
#label-layout-foreground = ${colors.primary}
|
||||
|
||||
#label-indicator-padding = 2
|
||||
#label-indicator-margin = 1
|
||||
#label-indicator-foreground = ${colors.background}
|
||||
#label-indicator-background = ${colors.secondary}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage_used:2%%
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.primary}
|
||||
label = %percentage:2%%
|
||||
|
||||
[network-base]
|
||||
type = internal/network
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||
|
||||
[module/wlan]
|
||||
inherit = network-base
|
||||
interface-type = wireless
|
||||
label-connected = %{F#87af87} %{F-} %essid%
|
||||
label-disconnected =
|
||||
label-disconnected-foreground = ${colors.disabled}
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %{F#87af87}% %%{F-} %local_ip%
|
||||
label-disconnected =
|
||||
label-disconnected-foreground = ${colors.disabled}
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 1
|
||||
|
||||
date = %b %d, %Y %H:%M
|
||||
date-alt = %Y-%m-%d %H:%M:%S
|
||||
|
||||
label = %date%
|
||||
label-foreground = ${colors.primary}
|
||||
|
||||
[module/tray]
|
||||
type = internal/tray
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = true
|
||||
|
||||
; vim:ft=dosini
|
||||
14
cosmo/config/polybar/launch.sh
Executable file
14
cosmo/config/polybar/launch.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
# If all your bars have ipc enabled, you can use
|
||||
polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
# killall -q polybar
|
||||
|
||||
# Launch bar1 and bar2
|
||||
echo "---" | tee -a /tmp/polybar-status.log
|
||||
polybar status 2>&1 | tee -a /tmp/polybar-status.log & disown
|
||||
#polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
|
||||
|
||||
echo "Bars launched..."
|
||||
13
cosmo/config/polybar/scripts/battery-status.sh
Executable file
13
cosmo/config/polybar/scripts/battery-status.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
#!/bin/bash
|
||||
|
||||
case $(cat /sys/class/power_supply/battery/status) in
|
||||
Charging)
|
||||
printf " "
|
||||
;;
|
||||
Discharging)
|
||||
printf " "
|
||||
;;
|
||||
esac
|
||||
|
||||
cat /sys/class/power_supply/battery/capacity
|
||||
8
cosmo/config/polybar/scripts/brightness-monitor.sh
Executable file
8
cosmo/config/polybar/scripts/brightness-monitor.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo $(( 100 * $(cat /sys/class/leds/lcd-backlight/brightness) / 255 ))
|
||||
|
||||
inotifywait -mq -e modify /sys/class/leds/lcd-backlight/brightness |
|
||||
while read file_path file_event; do
|
||||
echo $(( 100 * $(cat ${file_path}) / 255 ))
|
||||
done
|
||||
3
cosmo/config/xsettingsd/xsettingsd.conf
Normal file
3
cosmo/config/xsettingsd/xsettingsd.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Net/ThemeName "pogmom-gtk"
|
||||
Net/IconThemeName "breeze-dark"
|
||||
Gtk/CursorThemeName "breeze-dark"
|
||||
Loading…
Add table
Reference in a new issue