Move scripts

This commit is contained in:
Thomas Avé 2023-12-02 17:32:38 +01:00
parent 2a60cd7507
commit 80cf417932
10 changed files with 15 additions and 15 deletions

View File

@ -166,7 +166,7 @@ keys.globalkeys = gears.table.join(
function() function()
local c = client.focus local c = client.focus
if c and c.class == "Alacritty" then if c and c.class == "Alacritty" then
awful.spawn(string.format(os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/launch_alacritty.sh %d", c.pid)) awful.spawn(string.format(os.getenv("XDG_CONFIG_HOME") .. "/scripts/launch_alacritty.sh %d", c.pid))
else else
awful.spawn('bash -c "WINIT_X11_SCALE_FACTOR=1 alacritty"') awful.spawn('bash -c "WINIT_X11_SCALE_FACTOR=1 alacritty"')
end end
@ -211,14 +211,14 @@ keys.globalkeys = gears.table.join(
-- launch rofi -- launch rofi
awful.key({modkey}, "XF86Launch5", awful.key({modkey}, "XF86Launch5",
function() function()
awful.spawn(os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/toggle_rofi.sh") awful.spawn(os.getenv("XDG_CONFIG_HOME") .. "/scripts/toggle_rofi.sh")
end, end,
{description = "application launcher", group = "launcher"} {description = "application launcher", group = "launcher"}
), ),
-- launch rofi -- launch rofi
awful.key({modkey}, "d", awful.key({modkey}, "d",
function() function()
awful.spawn(os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/toggle_rofi.sh") awful.spawn(os.getenv("XDG_CONFIG_HOME") .. "/scripts/toggle_rofi.sh")
end, end,
{description = "application launcher", group = "launcher"} {description = "application launcher", group = "launcher"}
), ),
@ -335,7 +335,7 @@ keys.globalkeys = gears.table.join(
awful.key({modkey}, "Escape", awful.key({modkey}, "Escape",
function() function()
-- emit signal to show the exit screen -- emit signal to show the exit screen
awful.spawn("rofi -show power-menu -modi power-menu:" .. os.getenv("XDG_CONFIG_HOME") .. "/awesome/scripts/rofi-power-menu") awful.spawn("rofi -show power-menu -modi power-menu:" .. os.getenv("XDG_CONFIG_HOME") .. "/scripts/rofi-power-menu")
end, end,
{description = "toggle exit screen", group = "hotkeys"} {description = "toggle exit screen", group = "hotkeys"}
), ),
@ -343,7 +343,7 @@ keys.globalkeys = gears.table.join(
awful.key({}, "XF86PowerOff", awful.key({}, "XF86PowerOff",
function() function()
-- emit signal to show the exit screen -- emit signal to show the exit screen
awful.spawn("rofi -show power-menu -modi power-menu:~/.config/awesome/scripts/rofi-power-menu") awful.spawn("rofi -show power-menu -modi power-menu:~/.config/scripts/rofi-power-menu")
end, end,
{description = "toggle exit screen", group = "hotkeys"} {description = "toggle exit screen", group = "hotkeys"}
), ),

View File

@ -1,8 +1,8 @@
set $mod Mod4 set $mod Mod4
font pango:monospace 0 font pango:monospace 0
exec --no-startup-id "/home/user/.config/awesome/scripts/setup_display.sh" exec --no-startup-id "/home/user/.config/scripts/setup_display.sh"
exec_always --no-startup-id "feh --no-fehbg --bg-fill /home/user/.config/awesome/wallpaper/wallpaper.png" exec_always --no-startup-id "feh --no-fehbg --bg-fill /home/user/.config/wallpaper/wallpaper.png"
exec --no-startup-id "picom -b" exec --no-startup-id "picom -b"
exec_always --no-startup-id "killall polybar; polybar -r &" exec_always --no-startup-id "killall polybar; polybar -r &"
exec --no-startup-id "nm-applet &" exec --no-startup-id "nm-applet &"
@ -36,21 +36,21 @@ floating_modifier $mod
tiling_drag modifier titlebar tiling_drag modifier titlebar
# start a terminal # start a terminal
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+Return exec /home/user/.config/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+minus split v; exec /home/user/.config/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) bindsym $mod+bar split h; exec /home/user/.config/scripts/launch_alacritty.sh $(xprop -id $(xdotool getwindowfocus) | ag ^_NET_WM_PID | cut -d '=' -f 2)
# kill focused window # kill focused window
bindsym $mod+q kill bindsym $mod+q kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
bindsym $mod+d exec "~/.config/awesome/scripts/toggle_rofi.sh" bindsym $mod+d exec "~/.config/scripts/toggle_rofi.sh"
bindsym $mod+XF86Launch5 exec "~/.config/awesome/scripts/toggle_rofi.sh" bindsym $mod+XF86Launch5 exec "~/.config/scripts/toggle_rofi.sh"
bindsym $mod+Escape exec "rofi -show power-menu -modi power-menu:~/.config/awesome/scripts/rofi-power-menu" bindsym $mod+Escape exec "rofi -show power-menu -modi power-menu:~/.config/scripts/rofi-power-menu"
bindsym XF86PowerOff 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/scripts/rofi-power-menu"
bindsym $mod+c exec CM_LAUNCHER=rofi-script rofi -modi "clipmenu:/usr/bin/clipmenu" -show clipmenu bindsym $mod+c exec CM_LAUNCHER=rofi-script rofi -modi "clipmenu:/usr/bin/clipmenu" -show clipmenu
bindsym $mod+b exec firefox bindsym $mod+b exec firefox
bindsym $mod+a exec nautilus bindsym $mod+a exec nautilus

View File

@ -151,7 +151,7 @@ format-foreground = ${colors.white}
format-warn-background = ${self.background} format-warn-background = ${self.background}
exec = cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor exec = cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
format = " <label> " format = " <label> "
click-left = /home/user/.config/awesome/scripts/toggle_performance.sh click-left = /home/user/.config/scripts/toggle_performance.sh
[module/xwindow] [module/xwindow]
; Other settings ; Other settings