diff options
author | tdro <tdro@users.noreply.github.com> | 2019-05-08 21:04:06 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2019-05-08 21:04:06 -0400 |
commit | cb01737d4072b7bde2278c77cc32d68a04983ed2 (patch) | |
tree | dab5e6064095943d29956ee4eac4428ae5017baf /.config/awesome | |
parent | 50e5859fd08465cd47791e7daf51c348e6574366 (diff) | |
download | dotfiles-cb01737d4072b7bde2278c77cc32d68a04983ed2.tar.gz dotfiles-cb01737d4072b7bde2278c77cc32d68a04983ed2.tar.bz2 dotfiles-cb01737d4072b7bde2278c77cc32d68a04983ed2.zip |
.config/awesome/scripts: Use separate scripts folder
Diffstat (limited to '.config/awesome')
-rwxr-xr-x | .config/awesome/file-search | 15 | ||||
-rw-r--r-- | .config/awesome/rc.lua | 39 | ||||
-rwxr-xr-x | .config/awesome/scripts/amixer (renamed from .config/awesome/amixer) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/app-launcher (renamed from .config/awesome/app-launcher) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/app-launcher-priv | 3 | ||||
-rwxr-xr-x | .config/awesome/scripts/atexit (renamed from .config/awesome/atexit) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/clipboard-toggle | 8 | ||||
-rwxr-xr-x | .config/awesome/scripts/file-search | 15 | ||||
-rwxr-xr-x | .config/awesome/scripts/internet-search (renamed from .config/awesome/internet-search) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/lockscreen (renamed from .config/awesome/lockscreen) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/notify | 4 | ||||
-rwxr-xr-x | .config/awesome/scripts/powerdialog (renamed from .config/awesome/powerdialog) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/snipping-tool (renamed from .config/awesome/snipping-tool) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/switch-monitor (renamed from .config/awesome/xrandr-switch-monitor) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-down (renamed from .config/awesome/volume-down) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-mute (renamed from .config/awesome/volume-mute) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/volume-up (renamed from .config/awesome/volume-up) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/window-overview (renamed from .config/awesome/window-overview) | 0 | ||||
-rwxr-xr-x | .config/awesome/scripts/window-switcher (renamed from .config/awesome/window-switcher) | 0 |
19 files changed, 53 insertions, 31 deletions
diff --git a/.config/awesome/file-search b/.config/awesome/file-search deleted file mode 100755 index 26c24e9..0000000 --- a/.config/awesome/file-search +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# dmenu -if [ -f $HOME/.dmenurc ]; then - . $HOME/.dmenurc -else - DMENU='dmenu -f -i -b -nb black -nf white -sf white -fn Ubuntu-8' -fi - -input="$($DMENU -p "Search":)" -if [ "$input" != '' ] -then - result="$(echo "$input" | locate -e -r "$input" | $DMENU -p "Result:" )" - xdg-open "$result" -fi diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index fc53c37..25a88a7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -363,47 +363,47 @@ globalkeys = gears.table.join( -- Custom key bindings awful.key({ modkey }, "Tab", function () - awful.util.spawn_with_shell("~/.config/awesome/window-overview") + awful.util.spawn_with_shell("~/.config/awesome/scripts/window-overview") end), awful.key({ }, "Print", function () - awful.util.spawn_with_shell("~/.config/awesome/snipping-tool") + awful.util.spawn_with_shell("~/.config/awesome/scripts/snipping-tool") end), awful.key({ }, "XF86ScreenSaver", function () - awful.util.spawn_with_shell("~/.config/awesome/lockscreen") + awful.util.spawn_with_shell("~/.config/awesome/scripts/lockscreen") end), awful.key({ }, "XF86AudioRaiseVolume", function () - awful.util.spawn_with_shell("~/.config/awesome/volume-up") + awful.util.spawn_with_shell("~/.config/awesome/scripts/volume-up") end), awful.key({ }, "XF86AudioLowerVolume", function () - awful.util.spawn_with_shell("~/.config/awesome/volume-down") + awful.util.spawn_with_shell("~/.config/awesome/scripts/volume-down") end), awful.key({ }, "XF86AudioMute", function () - awful.util.spawn_with_shell("~/.config/awesome/volume-mute") + awful.util.spawn_with_shell("~/.config/awesome/scripts/volume-mute") end), awful.key({ }, "XF86Display", function () - awful.util.spawn_with_shell("~/.config/awesome/xrandr-switch-monitor") + awful.util.spawn_with_shell("~/.config/awesome/scripts/switch-monitor") end), awful.key({ modkey }, "p", function () - awful.util.spawn_with_shell("~/.config/awesome/internet-search") + awful.util.spawn_with_shell("~/.config/awesome/scripts/internet-search") end), awful.key({ modkey }, "r", function () - awful.util.spawn_with_shell("~/.config/awesome/app-launcher") + awful.util.spawn_with_shell("~/.config/awesome/scripts/app-launcher") end), awful.key({ modkey }, "d", function () - awful.util.spawn_with_shell("~/.config/awesome/app-launcher-priv") + awful.util.spawn_with_shell("~/.config/awesome/scripts/app-launcher-priv") end), awful.key({ modkey, "Mod1" }, "p", function () - awful.util.spawn_with_shell("~/.config/awesome/file-search") + awful.util.spawn_with_shell("~/.config/awesome/scripts/file-search") end), awful.key({ modkey }, "z", function () @@ -411,8 +411,15 @@ globalkeys = gears.table.join( end), awful.key({ "Mod1" }, "Tab", function () - awful.util.spawn_with_shell("~/.config/awesome/window-switcher") + awful.util.spawn_with_shell("~/.config/awesome/scripts/window-switcher") end) + + -- awful.key({ modkey }, "x", function () + -- awful.prompt.run({ prompt = "Run Lua code: " }, + -- mypromptbox[mouse.screen].widget, + -- awful.util.eval, nil, + -- awful.util.getdir("cache") .. "/history_eval") + -- end) ) clientkeys = gears.table.join( @@ -513,8 +520,7 @@ awful.rules.rules = { buttons = clientbuttons, screen = awful.screen.preferred, placement = awful.placement.no_overlap+awful.placement.no_offscreen - } - }, +}}, -- Floating clients. { rule_any = { @@ -523,7 +529,7 @@ awful.rules.rules = { -- Honor size hints for specific clients. { rule_any = { - instance = { "gvim", }, + instance = {}, }, properties = { size_hints_honor = true }}, } -- }}} @@ -599,11 +605,12 @@ awful.util.spawn = function (s) oldspawn(s, false) end --- No border for maximized clients +-- Hide window border for maximized clients client.connect_signal("property::maximized", function(c) c.border_width = c.maximized and 0 or beautiful.border_width end) +-- Focus and unfocus borders client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -- }}} diff --git a/.config/awesome/amixer b/.config/awesome/scripts/amixer index 58f66ee..58f66ee 100755 --- a/.config/awesome/amixer +++ b/.config/awesome/scripts/amixer diff --git a/.config/awesome/app-launcher b/.config/awesome/scripts/app-launcher index f0e69f5..f0e69f5 100755 --- a/.config/awesome/app-launcher +++ b/.config/awesome/scripts/app-launcher diff --git a/.config/awesome/scripts/app-launcher-priv b/.config/awesome/scripts/app-launcher-priv new file mode 100755 index 0000000..1f980c4 --- /dev/null +++ b/.config/awesome/scripts/app-launcher-priv @@ -0,0 +1,3 @@ +#!/bin/bash + +rofi -fullscreen -show run -display-run "#" -run-command 'gksudo {cmd}' -font "ubuntu 12" -bw 0 -padding 300 diff --git a/.config/awesome/atexit b/.config/awesome/scripts/atexit index 1a24852..1a24852 100755 --- a/.config/awesome/atexit +++ b/.config/awesome/scripts/atexit diff --git a/.config/awesome/scripts/clipboard-toggle b/.config/awesome/scripts/clipboard-toggle new file mode 100755 index 0000000..1260d3a --- /dev/null +++ b/.config/awesome/scripts/clipboard-toggle @@ -0,0 +1,8 @@ +#!/bin/bash + +ps cax | grep copyq > /dev/null +if [ $? -eq 0 ]; then + copyq toggle +else + copyq +fi diff --git a/.config/awesome/scripts/file-search b/.config/awesome/scripts/file-search new file mode 100755 index 0000000..74c8110 --- /dev/null +++ b/.config/awesome/scripts/file-search @@ -0,0 +1,15 @@ +#!/bin/bash + +# dmenu +#if [ -f $HOME/.dmenurc ]; then + #. $HOME/.dmenurc +#else + #DMENU='dmenu -f -i -b -nb black -nf white -sf white -fn Ubuntu-8' +#fi + +#input="$($DMENU -p "Search":)" +#if [ "$input" != '' ] +#then + #result="$(echo "$input" | locate -e -r "$input" | $DMENU -p "Result:" )" + #xdg-open "$result" +#fi diff --git a/.config/awesome/internet-search b/.config/awesome/scripts/internet-search index 8fb2272..8fb2272 100755 --- a/.config/awesome/internet-search +++ b/.config/awesome/scripts/internet-search diff --git a/.config/awesome/lockscreen b/.config/awesome/scripts/lockscreen index 918bedb..918bedb 100755 --- a/.config/awesome/lockscreen +++ b/.config/awesome/scripts/lockscreen diff --git a/.config/awesome/scripts/notify b/.config/awesome/scripts/notify new file mode 100755 index 0000000..7817c82 --- /dev/null +++ b/.config/awesome/scripts/notify @@ -0,0 +1,4 @@ +#!/bin/bash + +notify-send "Locking System" +killall -q dmenu diff --git a/.config/awesome/powerdialog b/.config/awesome/scripts/powerdialog index afa5005..afa5005 100755 --- a/.config/awesome/powerdialog +++ b/.config/awesome/scripts/powerdialog diff --git a/.config/awesome/snipping-tool b/.config/awesome/scripts/snipping-tool index cd99ba7..cd99ba7 100755 --- a/.config/awesome/snipping-tool +++ b/.config/awesome/scripts/snipping-tool diff --git a/.config/awesome/xrandr-switch-monitor b/.config/awesome/scripts/switch-monitor index a77037b..a77037b 100755 --- a/.config/awesome/xrandr-switch-monitor +++ b/.config/awesome/scripts/switch-monitor diff --git a/.config/awesome/volume-down b/.config/awesome/scripts/volume-down index ccba45f..ccba45f 100755 --- a/.config/awesome/volume-down +++ b/.config/awesome/scripts/volume-down diff --git a/.config/awesome/volume-mute b/.config/awesome/scripts/volume-mute index 1187d61..1187d61 100755 --- a/.config/awesome/volume-mute +++ b/.config/awesome/scripts/volume-mute diff --git a/.config/awesome/volume-up b/.config/awesome/scripts/volume-up index 236fbb2..236fbb2 100755 --- a/.config/awesome/volume-up +++ b/.config/awesome/scripts/volume-up diff --git a/.config/awesome/window-overview b/.config/awesome/scripts/window-overview index a75b92b..a75b92b 100755 --- a/.config/awesome/window-overview +++ b/.config/awesome/scripts/window-overview diff --git a/.config/awesome/window-switcher b/.config/awesome/scripts/window-switcher index 752141f..752141f 100755 --- a/.config/awesome/window-switcher +++ b/.config/awesome/scripts/window-switcher |