From 4499b432da95bb0cafa4d0c720ff1a30ecb2c485 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 15 Nov 2022 15:18:03 -0600 Subject: [PATCH] changes for awesome --- awesome/keybindings.fnl | 2 ++ awesome/rules.fnl | 2 +- mpv/mpv.conf | 4 ++-- picom.conf | 2 +- scripts/voldown | 2 +- scripts/volup | 2 +- xinitrc | 9 +++++++-- 7 files changed, 15 insertions(+), 8 deletions(-) diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 0084ca5..553d949 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -416,6 +416,8 @@ {:description "toggle floating" :group "client"}) (awful.key [ modkey ctrl ] "Return" (fn [c] (: c :swap (awful.client.getmaster))) {:description "move to master" :group "client"}) + (awful.key [ modkey ctrl ] "c" awful.placement.centered + {:description "move the floating window to the center of the screen" :group "layout"}) (awful.key [ modkey ] "o" (fn [c] (: c :move_to_screen)) {:description "move to screen" :group "client"}) (awful.key [ modkey ] "t" (fn [c] (set c.ontop (not c.ontop))) diff --git a/awesome/rules.fnl b/awesome/rules.fnl index 876f1d1..41060c1 100644 --- a/awesome/rules.fnl +++ b/awesome/rules.fnl @@ -41,7 +41,7 @@ :floating true :raise true ;; :height (dpi 1200) - :width (dpi 1650) + :width (dpi 1950) :screen 1 :sticky true :placement awful.placement.centered diff --git a/mpv/mpv.conf b/mpv/mpv.conf index cab1765..c0e51a2 100644 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -2,8 +2,8 @@ osc=no vo=gpu af=scaletempo2 -autofit=90% -geometry=90%:90% +autofit=99% +geometry=99%:99% # input-ipc-server="/tmp/mpvsocket" hwdec=auto rtsp-transport=udp diff --git a/picom.conf b/picom.conf index 365dcf1..016f70f 100644 --- a/picom.conf +++ b/picom.conf @@ -30,7 +30,7 @@ round-borders-exclude = [ shadow = true; # The blur radius for shadows, in pixels. (defaults to 12) -shadow-radius = 30; +shadow-radius = 25; # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) shadow-opacity = 1.0; diff --git a/scripts/voldown b/scripts/voldown index 0ea462f..d2c7cb8 100755 --- a/scripts/voldown +++ b/scripts/voldown @@ -1,7 +1,7 @@ #!/bin/sh awesome-client "naughty.destroy_all_notifications()" -pamixer -d 5 +pamixer --allow-boost -d 5 pw-play /nix/store/grc8na7vz23zlz0q9g76y6f66qrgr2cv-sound-theme-freedesktop-0.8/share/sounds/freedesktop/stereo/audio-volume-change.oga volume=$(pulsemixer --get-volume | awk '{print $1}') notify-send $volume diff --git a/scripts/volup b/scripts/volup index a7f2709..99bc741 100755 --- a/scripts/volup +++ b/scripts/volup @@ -1,7 +1,7 @@ #!/bin/sh awesome-client "naughty.destroy_all_notifications()" -pamixer -i 5 +pamixer --allow-boost -i 5 pw-play /nix/store/grc8na7vz23zlz0q9g76y6f66qrgr2cv-sound-theme-freedesktop-0.8/share/sounds/freedesktop/stereo/audio-volume-change.oga volume=$(pulsemixer --get-volume | awk '{print $1}') notify-send $volume diff --git a/xinitrc b/xinitrc index 898fb94..a23dd02 100644 --- a/xinitrc +++ b/xinitrc @@ -1,3 +1,5 @@ + + xrdb -merge ~/.Xresources xset r rate 220 90 @@ -5,8 +7,11 @@ autorandr -c export QT_QPA_PLATFORMTHEME="qt5ct" # export GDK_SCALE=2 -# export DESKTOP_SESSION=plasma +export DESKTOP_SESSION=plasma espanso daemon & +kdeconnect-indicator & +picom & +autorandr -c -exec awesome +dbus-launch awesome