Sync changes from laptop to master
This commit is contained in:
parent
1154f601a4
commit
66a5d9cd45
|
@ -84,6 +84,8 @@ local current_layout_box = wibox.widget {
|
||||||
layout = wibox.layout.fixed.horizontal
|
layout = wibox.layout.fixed.horizontal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local governor_selector, governor_timer = awful.widget.watch('bash -c "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"', 5)
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Bar Creation
|
-- Bar Creation
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
@ -161,6 +163,21 @@ top_panel.create = function(s)
|
||||||
awful.spawn('gnome-calendar')
|
awful.spawn('gnome-calendar')
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
governor_selector:connect_signal("button::press", function(c, _, _, button)
|
||||||
|
awful.spawn.easy_async_with_shell('bash -c "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"', function(output)
|
||||||
|
output = output:gsub("%s+", "")
|
||||||
|
if output == 'powersave' then
|
||||||
|
awful.spawn.easy_async('sudo /opt/power/performance.sh', function(_)
|
||||||
|
governor_selector:emit_signal("timeout")
|
||||||
|
end)
|
||||||
|
else
|
||||||
|
awful.spawn.easy_async('sudo /opt/power/powersave.sh', function(_)
|
||||||
|
governor_timer:emit_signal("timeout")
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return top_panel
|
return top_panel
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
[global]
|
||||||
|
frame_color = "#00000000"
|
||||||
|
separator_color= frame
|
||||||
|
background = "#24273A"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
font = "Ubuntu 10.5"
|
||||||
|
width = (0, 600)
|
||||||
|
padding = 15
|
||||||
|
origin = top-right
|
||||||
|
offset = 20x45
|
||||||
|
horizontal_padding = 20
|
||||||
|
gap_size = 15
|
|
@ -21,6 +21,7 @@ bindsym XF86AudioNext exec --no-startup-id playerctl next
|
||||||
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
bindsym XF86AudioPrev exec --no-startup-id playerctl previous
|
||||||
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id playerctl next
|
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id playerctl next
|
||||||
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id playerctl previous
|
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id playerctl previous
|
||||||
|
bindsym $mod+XF86AudioMute exec --no-startup-id playerctl play-pause
|
||||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||||
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s 10%+
|
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s 10%+
|
||||||
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 10%-
|
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 10%-
|
||||||
|
@ -146,7 +147,6 @@ bindsym $mod+Shift+r restart
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
# Pressing left will shrink the window's width.
|
# Pressing left will shrink the window's width.
|
||||||
# Pressing right will grow the window's width.
|
# Pressing right will grow the window's width.
|
||||||
# Pressing up will shrink the window's height.
|
# Pressing up will shrink the window's height.
|
||||||
|
|
|
@ -70,6 +70,9 @@ zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=
|
||||||
zstyle ':completion::complete:*' gain-privileges 1
|
zstyle ':completion::complete:*' gain-privileges 1
|
||||||
zstyle ':completion:*' rehash true
|
zstyle ':completion:*' rehash true
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
||||||
|
|
||||||
|
|
||||||
if [ -f "/usr/share/doc/pkgfile/command-not-found.zsh" ]; then
|
if [ -f "/usr/share/doc/pkgfile/command-not-found.zsh" ]; then
|
||||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||||
|
@ -89,8 +92,6 @@ if [ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ];
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
|
||||||
|
|
||||||
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
export HISTSIZE=10000000
|
export HISTSIZE=10000000
|
||||||
|
@ -137,9 +138,6 @@ export LANG=en_US.UTF-8
|
||||||
|
|
||||||
export TERM="screen-256color"
|
export TERM="screen-256color"
|
||||||
|
|
||||||
# Unity Development
|
|
||||||
export FrameworkPathOverride=/lib/mono/4.5
|
|
||||||
|
|
||||||
# Local python installation
|
# Local python installation
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue