Laptop #2

Closed
thomasave wants to merge 119 commits from laptop into master
9 changed files with 29 additions and 29 deletions
Showing only changes of commit c6ae5d6a0c - Show all commits

View File

@ -15,13 +15,13 @@ font:
family: Source Code Pro family: Source Code Pro
style: Bold Italic style: Bold Italic
size: 14 size: 13
# Colors (Molokai Dark) # Colors (Molokai Dark)
colors: colors:
# Default colors # Default colors
primary: primary:
background: '#000010' background: '#000030'
foreground: '#F8F8F2' foreground: '#F8F8F2'
normal: normal:

View File

@ -41,7 +41,7 @@ local updates_indicator = wibox.widget{
forced_width = 18, forced_width = 18,
widget = wibox.widget.imagebox, widget = wibox.widget.imagebox,
}, },
top = 5, bottom = 0, left = 5, right = 0, top = 4, bottom = 0, left = 5, right = 0,
widget = wibox.container.margin widget = wibox.container.margin
} }
}, },
@ -118,12 +118,14 @@ top_panel.create = function(s)
pl(wibox.widget{}, theme.bg_normal .. "00", theme.top_panel_powerline), pl(wibox.widget{}, theme.bg_normal .. "00", theme.top_panel_powerline),
pl(wibox.container.margin(wibox.widget.systray(), 0, 0, 5, 5), theme.top_panel_powerline, theme.bg_normal), pl(wibox.container.margin(wibox.widget.systray(), 0, 0, 5, 5), theme.top_panel_powerline, theme.bg_normal),
pl(volume_widget({widget_type='icon_and_text'}), theme.bg_normal, theme.top_panel_powerline), pl(volume_widget({widget_type='icon_and_text'}), theme.bg_normal, theme.top_panel_powerline),
pl(awful.widget.watch('bash -c "sensors | grep Tctl | cut -f 10 -d \' \' | cut -c 2-"', 5), theme.top_panel_powerline, theme.bg_normal), pl(governor_selector, theme.top_panel_powerline, theme.bg_normal),
pl(current_layout_box, theme.bg_normal, theme.top_panel_powerline),
pl(awful.widget.watch('bash -c "sensors | grep Package | cut -f 5 -d \' \' | cut -c 2-"', 5), theme.top_panel_powerline, theme.bg_normal),
pl(memory_widget, theme.bg_normal, theme.top_panel_powerline), pl(memory_widget, theme.bg_normal, theme.top_panel_powerline),
pl(cpu_widget, theme.top_panel_powerline, theme.bg_normal), pl(cpu_widget, theme.top_panel_powerline, theme.bg_normal),
pl(frequency_widget, theme.bg_normal, theme.top_panel_powerline), pl(frequency_widget, theme.bg_normal, theme.top_panel_powerline),
pl(updates_indicator, theme.top_panel_powerline, theme.bg_normal), pl(updates_indicator, theme.top_panel_powerline, theme.bg_normal),
pl(current_layout_box, theme.bg_normal, theme.top_panel_powerline), pl(battery_widget({font=theme.font, display_notification=true}), theme.bg_normal, theme.top_panel_powerline),
pl(clock, theme.top_panel_powerline, theme.top_panel_powerline), pl(clock, theme.top_panel_powerline, theme.top_panel_powerline),
} }
} }

View File

@ -25,8 +25,7 @@ local run_on_start_up = {
"nm-applet", "nm-applet",
"xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000", "xcape -e \"Super_L=Super_L|XF86Launch5\" -t 5000",
"xmodmap /home/user/.Xmodmap", "xmodmap /home/user/.Xmodmap",
os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/setup_display.sh", "feh --no-fehbg --bg-fill " .. gears.filesystem.get_configuration_dir() .. "/images/wallpaper.png",
"feh --no-fehbg --bg-fill " .. gears.filesystem.get_configuration_dir() .. "/images/wallpaper.png",
-- "/opt/power/powersave.sh", -- "/opt/power/powersave.sh",
-- os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/setup_display.sh" -- os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/setup_display.sh"
} }

View File

@ -2,8 +2,8 @@ local dpi = require("beautiful.xresources").apply_dpi
local theme = {} local theme = {}
-- Font -- Font
theme.font = "Ubuntu 12" theme.font = "Ubuntu 9"
theme.title_font = "Ubuntu 12" theme.title_font = "Ubuntu 10"
-- Background -- Background
theme.bg_normal = "#1f2430" theme.bg_normal = "#1f2430"
@ -31,7 +31,7 @@ theme.border_focus = "#002F5F"
theme.border_marked = theme.fg_urgent theme.border_marked = theme.fg_urgent
-- Panel Sizing -- Panel Sizing
theme.top_panel_height = dpi(30) theme.top_panel_height = dpi(27)
theme.top_panel_powerline = "#002F5F" theme.top_panel_powerline = "#002F5F"
-- Taglist -- Taglist

View File

@ -19,7 +19,7 @@ local function powerline(widget, bgcolor, adjacentcolor, right)
{ {
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
{ {
wibox.container.margin(widget, dpi(6), dpi(10), dpi(0), dpi(1)), wibox.container.margin(widget, dpi(6), dpi(6), dpi(0), dpi(1)),
bg = bgcolor, bg = bgcolor,
widget = wibox.container.background widget = wibox.container.background

View File

@ -15,7 +15,7 @@ include-file = ~/.config/polybar/colors.config
[bar/example] [bar/example]
; Generic options ; Generic options
width = 100% width = 100%
height = 32 height = 26
dpi-x = 96 dpi-x = 96
dpi-y = 96 dpi-y = 96
@ -29,19 +29,20 @@ background = #9912151c
foreground = ${colors.white} foreground = ${colors.white}
; Set bar's fonts list ; Set bar's fonts list
font-0 = "Noto Sans:size=13:weight=85:antialias=true;3" font-0 = "Ubuntu:size=10.2:weight=85:antialias=true;3"
font-1 = "Source Code Pro:pixelsize=20:antialias=true;6" font-1 = "Source Code Pro:pixelsize=20:antialias=true;6"
font-2 = "Source Code Pro:size=11:weight=bold:antialias=true;3" font-2 = "Source Code Pro:size=11:weight=bold:antialias=true;3"
font-3 = "Font Awesome 6 Free Solid:size=10:antialias=true;3" font-3 = "Font Awesome 6 Free Solid:size=11:antialias=true;3"
font-4 = "Font Awesome 6 Free:size=10:antialias=true;3" font-4 = "Font Awesome 6 Free:size=11:antialias=true;3"
font-5 = "Font Awesome 6 Brands:size=10:antialias=true;3" font-5 = "Font Awesome 6 Brands:size=11:antialias=true;3"
font-6 = "Font Awesome v4 Compatibility:size=10:antialias=true;3" font-6 = "Font Awesome v4 Compatibility:size=11:antialias=true;3"
; Set modules list ; Set modules list
modules-left = xwindow modules-left = xwindow
modules-center = i3 modules-center = i3
modules-right = updates temperature memory clockspeed cpu pulseaudio date startarrow modules-right = governor temperature memory clockspeed cpu pulseaudio battery updates date startarrow
fixed-center = true fixed-center = true
monitor = eDP-1
;======================================= ;=======================================
; Modules ; Modules
@ -101,16 +102,17 @@ label = " %used% "
[module/updates] [module/updates]
; Powerline settings ; Powerline settings
inherit = powerline-templates/right-to-left-item inherit = powerline-templates/right-to-left-item
background = ${colors.background} background = ${colors.blue}
background-next = ${root.background} background-next = ${colors.background}
; Other settings ; Other settings
type = custom/script type = custom/script
format-background = ${self.background} format-background = ${self.background}
format-foreground = ${colors.white} format-foreground = ${colors.white}
format-warn-background = ${self.background} format-warn-background = ${self.background}
exec = checkupdates | wc -l exec = checkupdates 2> /dev/null | wc -l
format = "  <label> " format = "  <label> "
click-left = WINIT_X11_SCALE_FACTOR=1 alacritty -e bash -c "yay ; echo Done, press any key to exit... ; read" click-left = WINIT_X11_SCALE_FACTOR=1 alacritty -e bash -c "yay ; echo Done, press any key to exit... ; read"
interval = 90
[module/clockspeed] [module/clockspeed]
@ -136,14 +138,14 @@ type = custom/script
format-background = ${colors.blue} format-background = ${colors.blue}
format-foreground = ${colors.white} format-foreground = ${colors.white}
format-warn-background = ${self.background} format-warn-background = ${self.background}
exec = sensors | grep Tctl | awk '{print $2}' | cut -d '+' -f 2 exec = sensors | grep Package | cut -d ' ' -f 5 | cut -d '+' -f 2
format = " <label> " format = " <label> "
[module/governor] [module/governor]
; Powerline settings ; Powerline settings
inherit = powerline-templates/right-to-left-item inherit = powerline-templates/right-to-left-item
background = ${colors.background} background = ${colors.background}
background-next = ${colors.blue} background-next = ${root.background}
; Other settings ; Other settings
type = custom/script type = custom/script
format-background = ${self.background} format-background = ${self.background}

View File

@ -96,7 +96,7 @@ type = custom/text
content-background = ${self.background-next} content-background = ${self.background-next}
content-foreground = ${self.background} content-foreground = ${self.background}
label-font = 1 label-font = 1
content = " " content = "  "
; ;
; # Right-to-left end-of-line separator ; # Right-to-left end-of-line separator
@ -115,7 +115,7 @@ content = " "
type = custom/text type = custom/text
content-foreground = ${self.separator} content-foreground = ${self.separator}
label-font = 1 label-font = 1
content = " " content = ""
; ============================================================================ ; ; ============================================================================ ;
; ;

View File

@ -5,7 +5,7 @@
*/ */
* { * {
background: #0f111a; background: #12151c;
foreground: #f1f1f1; foreground: #f1f1f1;
selected: #0033a1; selected: #0033a1;
selected-text: #ffffff; selected-text: #ffffff;

View File

@ -1,4 +1 @@
keycode 94 = grave asciitilde dead_grave dead_tilde grave asciitilde
keycode 49 = less greater less greater bar brokenbar bar brokenbar
keycode 49 = Shift_L
keycode 108 = Multi_key keycode 108 = Multi_key