aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-04-21 19:15:55 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-04-21 19:15:55 +0100
commit7dd4ecbae50e37a9a86aa76068d6f5fd6a97996d (patch)
tree1daab734c92f15ce41832c80e78c55c44cdbde54
parent2e67201f4100ecd95e051618c1969348e207408f (diff)
Whatever I changed on my steam deck
-rw-r--r--sway/config15
-rw-r--r--waybar/config21
-rw-r--r--zsh/config/aliases.zsh2
3 files changed, 29 insertions, 9 deletions
diff --git a/sway/config b/sway/config
index 153260c..da1f0ff 100644
--- a/sway/config
+++ b/sway/config
@@ -51,11 +51,20 @@ workspace 3 output $monitor2 # discord
workspace 4 output $monitor2 # spotify
workspace 5 output $monitor1 # thunderbird
+#############
+# Windows #
+#############
+
+for_window [app_id="termfloat"] floating enable
+for_window [app_id="termfloat"] resize set height 500
+for_window [app_id="termfloat"] resize set width 900
+
##############
# Keybinds #
##############
bindsym $mod+Return exec $term
+bindsym $mod+Shift+Return exec $term --class="termfloat"
bindsym $mod+d exec $menu
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
@@ -139,8 +148,8 @@ bindsym $mod+Shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# Screenshot
-bindsym Print exec /usr/share/sway/scripts/grimshot copy area
-bindsym $mod+Shift+equal exec /usr/share/sway/scripts/grimshot copy area
+bindsym Print exec /usr/share/sway/scripts/grimshot --notify copy area
+bindsym $mod+Shift+equal exec /usr/share/sway/scripts/grimshot --notify copy area
bindsym $mod+bracketleft exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym $mod+bracketright exec pactl set-sink-volume @DEFAULT_SINK@ +5%
@@ -172,6 +181,8 @@ exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DE
exec swayidle -w \
before-sleep "swaylock"
+exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
+
# Chromium hotkey fix
for_window [app_id="^chrome-.*-.*$"] shortcuts_inhibitor disable
diff --git a/waybar/config b/waybar/config
index 7e7b530..2c1ef87 100644
--- a/waybar/config
+++ b/waybar/config
@@ -2,7 +2,7 @@
"height": 30,
"spacing": 4,
"modules-left": ["sway/workspaces", "sway/mode"],
- "modules-right": ["tray", "custom/spotify", "idle_inhibitor", "network", "cpu", "memory", "backlight", "pulseaudio", "battery", "clock"],
+ "modules-right": ["tray", "idle_inhibitor", "custom/scratchpad_indicator", "network", "cpu", "memory", "backlight", "pulseaudio", "battery", "clock"],
"custom/spotify": {
"exec": "/usr/bin/python3 ~/.config/waybar/scripts/mediaplayer.py --player spotify",
"format": "{}",
@@ -27,6 +27,13 @@
"tray": {
"spacing": 10
},
+ "custom/scratchpad_indicator": {
+ "interval": 3,
+ "exec": "swaymsg -t get_tree | ~/.config/waybar/scripts/scratchpads.py",
+ "format": " {} ",
+ "on-click": "swaymsg 'scratchpad show'",
+ "on-click-right": "swaymsg 'move scratchpad'"
+ },
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%d/%m/%Y %H:%M:%S}",
@@ -69,10 +76,10 @@
"pulseaudio": {
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": " {volume}% {format_source}",
- "format-bluetooth-muted": " 婢 {format_source}",
- "format-muted": "婢 {format_source}",
+ "format-bluetooth-muted": " 0% {format_source}",
+ "format-muted": "婢0% {format_source}",
"format-source": " {volume}%",
- "format-source-muted": " ",
+ "format-source-muted": " 0%",
"format-icons": {
"headphone": " ",
"hands-free": "",
@@ -87,10 +94,10 @@
"scroll-step": 0.5
},
"idle_inhibitor": {
- "format": "{icon}",
+ "format": "{icon} ",
"format-icons": {
- "activated": "",
- "deactivated": ""
+ "activated": " ",
+ "deactivated": " "
}
}
}
diff --git a/zsh/config/aliases.zsh b/zsh/config/aliases.zsh
index 261161f..a90f1fe 100644
--- a/zsh/config/aliases.zsh
+++ b/zsh/config/aliases.zsh
@@ -16,3 +16,5 @@ alias lx="exa -lbhHigUmuSa@ --icons --time-style=long-iso --git --color-scale"
alias lS="exa -1"
alias lt="exa --tree --level=2"
+# PacUI
+alias pi="pacui i"