Move scripts
This commit is contained in:
parent
2a60cd7507
commit
80cf417932
|
@ -166,7 +166,7 @@ keys.globalkeys = gears.table.join(
|
|||
function()
|
||||
local c = client.focus
|
||||
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
|
||||
awful.spawn('bash -c "WINIT_X11_SCALE_FACTOR=1 alacritty"')
|
||||
end
|
||||
|
@ -211,14 +211,14 @@ keys.globalkeys = gears.table.join(
|
|||
-- launch rofi
|
||||
awful.key({modkey}, "XF86Launch5",
|
||||
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,
|
||||
{description = "application launcher", group = "launcher"}
|
||||
),
|
||||
-- launch rofi
|
||||
awful.key({modkey}, "d",
|
||||
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,
|
||||
{description = "application launcher", group = "launcher"}
|
||||
),
|
||||
|
@ -335,7 +335,7 @@ keys.globalkeys = gears.table.join(
|
|||
awful.key({modkey}, "Escape",
|
||||
function()
|
||||
-- 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,
|
||||
{description = "toggle exit screen", group = "hotkeys"}
|
||||
),
|
||||
|
@ -343,7 +343,7 @@ keys.globalkeys = gears.table.join(
|
|||
awful.key({}, "XF86PowerOff",
|
||||
function()
|
||||
-- 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,
|
||||
{description = "toggle exit screen", group = "hotkeys"}
|
||||
),
|
||||
|
|
18
i3/config
18
i3/config
|
@ -1,8 +1,8 @@
|
|||
set $mod Mod4
|
||||
font pango:monospace 0
|
||||
|
||||
exec --no-startup-id "/home/user/.config/awesome/scripts/setup_display.sh"
|
||||
exec_always --no-startup-id "feh --no-fehbg --bg-fill /home/user/.config/awesome/wallpaper/wallpaper.png"
|
||||
exec --no-startup-id "/home/user/.config/scripts/setup_display.sh"
|
||||
exec_always --no-startup-id "feh --no-fehbg --bg-fill /home/user/.config/wallpaper/wallpaper.png"
|
||||
exec --no-startup-id "picom -b"
|
||||
exec_always --no-startup-id "killall polybar; polybar -r &"
|
||||
exec --no-startup-id "nm-applet &"
|
||||
|
@ -36,21 +36,21 @@ floating_modifier $mod
|
|||
tiling_drag modifier titlebar
|
||||
|
||||
# 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
|
||||
bindsym $mod+q kill
|
||||
|
||||
# start dmenu (a program launcher)
|
||||
bindsym $mod+d exec "~/.config/awesome/scripts/toggle_rofi.sh"
|
||||
bindsym $mod+XF86Launch5 exec "~/.config/awesome/scripts/toggle_rofi.sh"
|
||||
bindsym $mod+Escape 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/awesome/scripts/rofi-power-menu"
|
||||
bindsym $mod+d exec "~/.config/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/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+b exec firefox
|
||||
bindsym $mod+a exec nautilus
|
||||
|
|
|
@ -151,7 +151,7 @@ format-foreground = ${colors.white}
|
|||
format-warn-background = ${self.background}
|
||||
exec = cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
format = " <label> "
|
||||
click-left = /home/user/.config/awesome/scripts/toggle_performance.sh
|
||||
click-left = /home/user/.config/scripts/toggle_performance.sh
|
||||
|
||||
[module/xwindow]
|
||||
; Other settings
|
||||
|
|
Loading…
Reference in New Issue