diff --git a/config/awesome/config/key.lua b/config/awesome/config/key.lua index fee58aa..0fd52c5 100644 --- a/config/awesome/config/key.lua +++ b/config/awesome/config/key.lua @@ -66,6 +66,10 @@ globalkeys = gears.table.join( ), awful.key({ modkey, }, "q", function () awful.spawn(vscode) end, {description = "spawn code", group = "launcher"}), + awful.key({ modkey, "Shift" }, "f", function () awful.spawn(fm) end, + {description = "spawn file manager", group = "launcher"}), + awful.key({ modkey, "Shift" }, "d", function () awful.spawn(discord) end, + {description = "spawn discord", group = "launcher"}), awful.key({ modkey, }, "w", function () awful.spawn(browser) end, {description = "spawn browser", group = "launcher"}), awful.key({ modkey, }, "e", function () awful.spawn(music_player) end, @@ -96,8 +100,17 @@ globalkeys = gears.table.join( function() awesome.emit_signal("volume_refresh") end) end, {description = "mute audio", group = "audio"}), - -- Dark toggle + -- Brightness with brightnessctl + awful.key({}, "XF86MonBrightnessUp", function() + awful.spawn.easy_async_with_shell("brightnessctl set +25%", + function() awesome.emit_signal("brightness_refresh") end) + end, {description = "raise brightness by 25%", group = "brightness"}), + awful.key({}, "XF86MonBrightnessDown", function() + awful.spawn.easy_async_with_shell("brightnessctl set 25%-", + function() awesome.emit_signal("brightness_refresh") end) + end, {description = "lower brightness by 25%", group = "brightness"}), + -- Dark toggle awful.key({ modkey, }, "x", function () if theme == themes[1] then awful.spawn.with_shell(gears.filesystem.get_configuration_dir() .. "scripts/dark") diff --git a/config/awesome/config/wezterm/dark.lua b/config/awesome/config/wezterm/dark.lua index ba65891..a1a6df3 100644 --- a/config/awesome/config/wezterm/dark.lua +++ b/config/awesome/config/wezterm/dark.lua @@ -2,7 +2,7 @@ local wezterm = require 'wezterm'; return { front_end = "OpenGL", - font = wezterm.font({'SFMono Nerd Font', stretch="UltraCondensed", weight="Meidum"}), + font = wezterm.font('SFMono Nerd Font', {stretch="UltraCondensed", weight="Medium"}), font_size = 14, colors = { foreground = "#ffffff", diff --git a/config/awesome/config/wezterm/light.lua b/config/awesome/config/wezterm/light.lua index 676cbdc..22d9950 100644 --- a/config/awesome/config/wezterm/light.lua +++ b/config/awesome/config/wezterm/light.lua @@ -2,7 +2,7 @@ local wezterm = require 'wezterm'; return { front_end = "OpenGL", - font = wezterm.font({'SFMono Nerd Font', stretch="UltraCondensed", weight="Meidum"}), + font = wezterm.font('SFMono Nerd Font', {stretch="UltraCondensed", weight="Medium"}), font_size = 14, colors = { foreground = "#3e3e3e", diff --git a/config/awesome/scripts/dark b/config/awesome/scripts/dark index 2b3d86a..a122e5f 100755 --- a/config/awesome/scripts/dark +++ b/config/awesome/scripts/dark @@ -5,11 +5,11 @@ sed -i "31s/.*/theme = themes[2]/g" ~/.config/awesome/rc.lua # Gtk sed -i "2s/.*/gtk-icon-theme-name=Mkos-Big-Sur-Night/g" ~/.config/gtk-3.0/settings.ini -sed -i "4s/.*/gtk-theme-name=WhiteSur-dark/g" ~/.config/gtk-3.0/settings.ini +sed -i "4s/.*/gtk-theme-name=WhiteSur-Dark/g" ~/.config/gtk-3.0/settings.ini # Picom sed -i "7s/.*/shadow-opacity = 0.4;/g" ~/.config/awesome/config/picom.conf # Spotify -spicetify config color_scheme dark -spicetify update \ No newline at end of file +#spicetify config color_scheme dark +#spicetify update diff --git a/config/awesome/scripts/light b/config/awesome/scripts/light index e71059a..3ba2156 100755 --- a/config/awesome/scripts/light +++ b/config/awesome/scripts/light @@ -5,11 +5,11 @@ sed -i "31s/.*/theme = themes[1]/g" ~/.config/awesome/rc.lua # Gtk sed -i "2s/.*/gtk-icon-theme-name=Mkos-Big-Sur/g" ~/.config/gtk-3.0/settings.ini -sed -i "4s/.*/gtk-theme-name=WhiteSur-light/g" ~/.config/gtk-3.0/settings.ini +sed -i "4s/.*/gtk-theme-name=WhiteSur-Light/g" ~/.config/gtk-3.0/settings.ini # Picom sed -i "7s/.*/shadow-opacity = 0.05;/g" ~/.config/awesome/config/picom.conf # Spotify -spicetify config color_scheme white -spicetify update \ No newline at end of file +#spicetify config color_scheme white +#spicetify update diff --git a/config/awesome/scripts/shoot b/config/awesome/scripts/shoot index 78a266a..d77dcfa 100755 --- a/config/awesome/scripts/shoot +++ b/config/awesome/scripts/shoot @@ -2,8 +2,14 @@ # My script for screenshots, im bad at scripting pls help to make smaller +SCREENSHOTS_DIR=~/Pictures img="shot_$(date '+%m%d%H%M%S').png" -file="$HOME/Pictures/$img" +file="$SCREENSHOTS_DIR/$img" + +# Create directory if needed +if [ ! -d "$SCREENSHOTS_DIR" ]; then + mkdir "$SCREENSHOTS_DIR" +fi case $1 in "sel")