diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2024-05-01 02:34:50 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2024-05-01 02:34:50 +0300 |
| commit | ff225269feab9ed7ea4006419aa44d3863622082 (patch) | |
| tree | e4e9c65147ac5f0e9c25317e6c7aa90253640367 | |
| parent | f27f1782924d3ac3eeb3c23fda53ad229dac3732 (diff) | |
| download | dotfiles-ff225269feab9ed7ea4006419aa44d3863622082.tar.xz dotfiles-ff225269feab9ed7ea4006419aa44d3863622082.zip | |
Just added some cleaning up in awesome and added a new life changing shortcut to fuzzy find windows using rofi
| -rw-r--r-- | awesome/.config/awesome/picom.conf | 33 | ||||
| -rw-r--r-- | awesome/.config/awesome/rc.lua | 43 |
2 files changed, 23 insertions, 53 deletions
diff --git a/awesome/.config/awesome/picom.conf b/awesome/.config/awesome/picom.conf index e019e6a..8cbcd97 100644 --- a/awesome/.config/awesome/picom.conf +++ b/awesome/.config/awesome/picom.conf @@ -173,8 +173,8 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ]; #
#opacity-rule = [ "80:class_g = 'Alacritty'" ]
opacity-rule = [
- "90:class_g = 'kitty'",
- "90:class_g = 'alacritty'",
+ # "90:class_g = 'kitty'",
+ # "90:class_g = 'alacritty'",
];
@@ -183,23 +183,29 @@ opacity-rule = [ #################################
+
# Exclude conditions for background blur.
# blur-background-exclude = []
blur-background-exclude = [
- "window_type = 'menu'";
- "window_type = 'dropdown_menu'";
- "window_type = 'popup_menu'";
- "window_type = 'tooltip'";
- "window_type = 'dock'",
- "window_type = 'desktop'",
+ # "window_type = 'menu'";
+ # "window_type = 'dropdown_menu'";
+ # "window_type = 'popup_menu'";
+ # "window_type = 'tooltip'";
+ # "window_type = 'dock'",
+ # "window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
+
+blur-background = [
+ "class_g = 'alacritty'",
+];
+
blur:
{
method = "dual_kawase";
strength = 4;
- for_window = ["class_g = 'alacritty'"];
+ # for_window = ["class_g = 'alacritty'"];
};
# Parameters for background blurring, see the *BLUR* section for more information.
@@ -452,12 +458,3 @@ log-level = "warn"; # set, and doesn't want certain window to cause unnecessary screen redirection,
# you can set this to `true`.
#
-wintypes:
-{
- # normal { blur-background = true; };
- # tooltip = { fade = true; shadow = true; opacity = 1.0; focus = true; full-shadow = false; };
- dock = { shadow = false; };
- dnd = { shadow = false; };
- # popup_menu = { opacity = 1.0; }
- # dropdown_menu = { opacity = 1.0; }
-};
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 6c58bbc..2380ac6 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -317,17 +317,11 @@ globalkeys = my_table.join( awful.util.spawn(browser1) end, { description = browser1, group = "function keys" }), awful.key({ modkey }, "r", function() - awful.util.spawn("kitty -e ranger") + awful.util.spawn(terminal .. " -e ranger") end, { description = "launch ranger", group = "function keys" }), awful.key({ modkey }, "f", function() awful.util.spawn(filemanager) end, { description = filemanager, group = "alt+ctrl" }), - awful.key({ altkey }, "c", function() - awful.spawn("/home/omar/.scripts/pscontests.sh") - end, { description = "contest init", group = "hotkeys" }), - awful.key({ altkey }, "w", function() - awful.spawn("/home/omar/.scripts/wally.sh") - end, { description = "set random wallpaper", group = "hotkeys" }), awful.key({ altkey }, "d", function() awful.spawn("/home/omar/.scripts/dmenuscripts.sh") end, { description = "all scripts", group = "hotkeys" }), @@ -339,10 +333,13 @@ globalkeys = my_table.join( end, { description = "books", group = "hotkeys" }), awful.key({ modkey }, "p", function() awful.spawn("/home/omar/.scripts/execute_shell.sh") - end, { description = "execture arbitrary shell commands", group = "hotkeys" }), + end, { description = "execute arbitrary shell commands", group = "hotkeys" }), awful.key({ modkey }, "o", function() awful.util.spawn("rofi -show drun") - end, { description = "rofi", group = "function keys" }), + end, { description = "rofi application launcher", group = "function keys" }), + awful.key({ modkey }, "w", function() + awful.util.spawn("rofi -show window") + end, { description = "rofi fuzzy find windows", group = "function keys" }), -- super + ... awful.key({ modkey }, "v", function() @@ -368,30 +365,13 @@ globalkeys = my_table.join( awful.util.spawn(terminal) end, { description = terminal, group = "alt+ctrl" }), - -- alt + ... - awful.key({ altkey, "Shift" }, "t", function() - awful.spawn.with_shell("variety -t && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") - end, { description = "Pywal Wallpaper trash", group = "altkey" }), - awful.key({ altkey, "Shift" }, "n", function() - awful.spawn.with_shell("variety -n && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") - end, { description = "Pywal Wallpaper next", group = "altkey" }), - awful.key({ altkey, "Shift" }, "u", function() - awful.spawn.with_shell("wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") - end, { description = "Pywal Wallpaper update", group = "altkey" }), - awful.key({ altkey, "Shift" }, "p", function() - awful.spawn.with_shell("variety -p && wal -i $(cat $HOME/.config/variety/wallpaper/wallpaper.jpg.txt)&") - end, { description = "Pywal Wallpaper previous", group = "altkey" }), - -- screenshots awful.key({}, "Print", function() awful.util.spawn("scrot 'ArcoLinux-%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f $$(xdg-user-dir PICTURES)'") end, { description = "Scrot", group = "screenshots" }), - awful.key({ modkey1 }, "Print", function() - awful.util.spawn("xfce4-screenshooter") - end, { description = "Xfce screenshot", group = "screenshots" }), awful.key({ modkey, "Shift" }, "s", function() awful.util.spawn("/home/omar/.scripts/screenshot.sh") - end, { description = "Gnome screenshot", group = "screenshots" }), + end, { description = "take a screenshot", group = "screenshots" }), -- Personal keybindings}}} @@ -438,13 +418,6 @@ globalkeys = my_table.join( awful.key({ modkey }, "y", function() awful.spawn("/home/omar/.scripts/youtube.sh") end, { description = "change keyboardlayout to english", group = "hotkeys" }), - -- Default client focus - awful.key({ altkey }, "j", function() - awful.client.focus.byidx(1) - end, { description = "focus next by index", group = "client" }), - awful.key({ altkey }, "k", function() - awful.client.focus.byidx(-1) - end, { description = "focus previous by index", group = "client" }), -- By direction client focus awful.key({ modkey }, "j", function() @@ -558,7 +531,7 @@ globalkeys = my_table.join( lain.util.delete_tag() end, { description = "delete tag", group = "tag" }), - -- Standard program + -- Standard programs awful.key({ modkey }, "Return", function() awful.spawn(terminal) end, { description = terminal, group = "super" }), |
