From 166dd6eb00261665fe62978f62a14772a501c835 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Mon, 6 Jun 2022 18:18:04 +0200 Subject: Added some new aliases and cleaned rc.lua from uncessary stuff --- aliases/.aliases/aliases | 1 + awesome/.config/awesome/rc.lua | 82 ++++++++---------------------------------- kitty/.config/kitty/kitty.conf | 3 +- tmux/.tmux/.tmux.conf | 1 + 4 files changed, 19 insertions(+), 68 deletions(-) diff --git a/aliases/.aliases/aliases b/aliases/.aliases/aliases index 765414e..deb3dcf 100644 --- a/aliases/.aliases/aliases +++ b/aliases/.aliases/aliases @@ -1,3 +1,4 @@ +alias kpr="ps aux | fzf | awk '{print $2}' | xargs kill > /dev/null 2> /dev/null" alias build="./main < inp" alias clean="~/.scripts/cleanup.sh" alias lg="lazygit" diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 2feaa9f..610ceb2 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -138,27 +138,27 @@ awful.util.tagnames = { " WWW ", " DEV ", " STUDY ", " MUSIC ", " MAIL ", " LEIS awful.layout.suit.tile.left.mirror = true awful.layout.layouts = { awful.layout.suit.tile, - awful.layout.suit.floating, + -- awful.layout.suit.floating, awful.layout.suit.tile.left, awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, - awful.layout.suit.fair, - awful.layout.suit.fair.horizontal, - awful.layout.suit.spiral, - awful.layout.suit.spiral.dwindle, + -- awful.layout.suit.tile.top, + -- awful.layout.suit.fair, + -- awful.layout.suit.fair.horizontal, + -- awful.layout.suit.spiral, + -- awful.layout.suit.spiral.dwindle, awful.layout.suit.max, awful.layout.suit.max.fullscreen, - awful.layout.suit.magnifier, - awful.layout.suit.corner.nw, - awful.layout.suit.corner.ne, - awful.layout.suit.corner.sw, - awful.layout.suit.corner.se, - lain.layout.cascade, - lain.layout.cascade.tile, + -- awful.layout.suit.magnifier, + -- awful.layout.suit.corner.nw, + -- awful.layout.suit.corner.ne, + -- awful.layout.suit.corner.sw, + -- awful.layout.suit.corner.se, + -- lain.layout.cascade, + -- lain.layout.cascade.tile, lain.layout.centerwork, lain.layout.centerwork.horizontal, - lain.layout.termfair, - lain.layout.termfair.center, + -- lain.layout.termfair, + -- lain.layout.termfair.center, } awful.util.taglist_buttons = my_table.join( @@ -357,12 +357,6 @@ globalkeys = my_table.join( {description = "conky-toggle", group = "super"}), awful.key({ modkey }, "e", function () awful.util.spawn( editorgui ) end, {description = "run gui editor", group = "super"}), - --awful.key({ modkey }, "h", function () awful.util.spawn( "urxvt -T 'htop task manager' -e htop" ) end, - --{description = "htop", group = "super"}), - --awful.key({ modkey }, "r", function () awful.util.spawn( "rofi-theme-selector" ) end, - --{description = "rofi theme selector", group = "super"}), - --awful.key({ modkey }, "t", function () awful.util.spawn( terminal ) end, - --{description = "terminal", group = "super"}), awful.key({ modkey }, "v", function () awful.util.spawn( "pavucontrol" ) end, {description = "pulseaudio control", group = "super"}), --awful.key({ modkey }, "u", function () awful.screen.focused().mypromptbox:run() end, @@ -381,16 +375,6 @@ globalkeys = my_table.join( -- ctrl+alt + ... - awful.key({ modkey1, altkey }, "w", function() awful.util.spawn( "arcolinux-welcome-app" ) end, - {description = "ArcoLinux Welcome App", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "e", function() awful.util.spawn( "arcolinux-tweak-tool" ) end, - {description = "ArcoLinux Tweak Tool", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "Next", function() awful.util.spawn( "conky-rotate -n" ) end, - {description = "Next conky rotation", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "Prior", function() awful.util.spawn( "conky-rotate -p" ) end, - {description = "Previous conky rotation", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "a", function() awful.util.spawn( "xfce4-appfinder" ) end, - {description = "Xfce appfinder", group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "b", function() awful.util.spawn( filemanager ) end, {description = filemanager, group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "c", function() awful.util.spawn("catfish") end, @@ -399,28 +383,14 @@ globalkeys = my_table.join( {description = browser2, group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "g", function() awful.util.spawn( browser3 ) end, {description = browser3, group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "i", function() awful.util.spawn("nitrogen") end, - {description = nitrogen, group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "k", function() awful.util.spawn( "arcolinux-logout" ) end, - {description = scrlocker, group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "l", function() awful.util.spawn( "arcolinux-logout" ) end, - {description = scrlocker, group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "o", function() awful.spawn.with_shell("$HOME/.config/awesome/scripts/picom-toggle.sh") end, - {description = "Picom toggle", group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "s", function() awful.util.spawn( mediaplayer ) end, {description = mediaplayer, group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "t", function() awful.util.spawn( terminal ) end, {description = terminal, group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "u", function() awful.util.spawn( "pavucontrol" ) end, {description = "pulseaudio control", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "v", function() awful.util.spawn( browser1 ) end, - {description = browser1, group = "alt+ctrl"}), awful.key({ modkey1, altkey }, "Return", function() awful.util.spawn(terminal) end, {description = terminal, group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "m", function() awful.util.spawn( "xfce4-settings-manager" ) end, - {description = "Xfce settings manager", group = "alt+ctrl"}), - awful.key({ modkey1, altkey }, "p", function() awful.util.spawn( "pamac-manager" ) end, - {description = "Pamac Manager", 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, @@ -431,28 +401,6 @@ globalkeys = my_table.join( {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"}), - awful.key({ altkey }, "t", function () awful.util.spawn( "variety -t" ) end, - {description = "Wallpaper trash", group = "altkey"}), - awful.key({ altkey }, "n", function () awful.util.spawn( "variety -n" ) end, - {description = "Wallpaper next", group = "altkey"}), - awful.key({ altkey }, "p", function () awful.util.spawn( "variety -p" ) end, - {description = "Wallpaper previous", group = "altkey"}), - awful.key({ altkey }, "f", function () awful.util.spawn( "variety -f" ) end, - {description = "Wallpaper favorite", group = "altkey"}), - awful.key({ altkey }, "Left", function () awful.util.spawn( "variety -p" ) end, - {description = "Wallpaper previous", group = "altkey"}), - awful.key({ altkey }, "Right", function () awful.util.spawn( "variety -n" ) end, - {description = "Wallpaper next", group = "altkey"}), - awful.key({ altkey }, "Up", function () awful.util.spawn( "variety --pause" ) end, - {description = "Wallpaper pause", group = "altkey"}), - awful.key({ altkey }, "Down", function () awful.util.spawn( "variety --resume" ) end, - {description = "Wallpaper resume", group = "altkey"}), - awful.key({ altkey }, "F2", function () awful.util.spawn( "xfce4-appfinder --collapsed" ) end, - {description = "Xfce appfinder", group = "altkey"}), - awful.key({ altkey }, "F3", function () awful.util.spawn( "xfce4-appfinder" ) end, - {description = "Xfce appfinder", group = "altkey"}), - -- awful.key({ altkey }, "F5", function () awful.spawn.with_shell( "xlunch --config ~/.config/xlunch/default.conf --input ~/.config/xlunch/entries.dsv" ) end, - -- {description = "Xlunch app launcher", 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, diff --git a/kitty/.config/kitty/kitty.conf b/kitty/.config/kitty/kitty.conf index 4da77f4..7d44a11 100644 --- a/kitty/.config/kitty/kitty.conf +++ b/kitty/.config/kitty/kitty.conf @@ -940,7 +940,8 @@ inactive_tab_font_style normal #: The foreground and background colors # background_opacity 0.95 -background_opacity 0.90 +# background_opacity 0.90 +background_opacity 0.00 #: The opacity of the background. A number between 0 and 1, where 1 is #: opaque and 0 is fully transparent. This will only work if diff --git a/tmux/.tmux/.tmux.conf b/tmux/.tmux/.tmux.conf index 0400870..612eb61 100644 --- a/tmux/.tmux/.tmux.conf +++ b/tmux/.tmux/.tmux.conf @@ -34,6 +34,7 @@ bind e new-window -n "~/.tmux.conf.local" "EDITOR=\${EDITOR//mvim/vim} && EDITOR # reload configuration bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' +# bind -r u set -g status off # -- display ------------------------------------------------------------------- -- cgit v1.2.3