From af6cf6151e73c4668a332d2f8e29fb0587d31495 Mon Sep 17 00:00:00 2001 From: Josh Fabean Date: Tue, 15 Feb 2022 13:49:14 -0600 Subject: [PATCH] sway and waybar changes --- .config/sway/articuno-sway | 82 ++++++++++++++++++++++++++++---------- .config/waybar/config | 2 +- 2 files changed, 61 insertions(+), 23 deletions(-) diff --git a/.config/sway/articuno-sway b/.config/sway/articuno-sway index b4f9366..b24ba6d 100644 --- a/.config/sway/articuno-sway +++ b/.config/sway/articuno-sway @@ -3,7 +3,7 @@ set $mod Mod4 set $alt Mod1 - +set $term foot font Vulf Mono, FontAwesome 12 bindsym $mod+F7 exec --no-startup-id xset r rate 250 25 && xset b off && setxkbmap -option caps:escape @@ -30,10 +30,63 @@ exec swayidle -w \ # start rofi (a program launcher) bindsym XF86LaunchA exec --no-startup-id rofi -show run bindcode 225 exec --no-startup-id rofi -show run -bindsym $mod+space exec --no-startup-id rofi -show run +#bindsym $mod+space exec --no-startup-id rofi -show run for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10 -set $menu exec alacritty --class=launcher -e sway-launcher-desktop +#set $menu exec alacritty --class=launcher -e sway-launcher-desktop +set $menu rofi -combi-modi drun\,run\,ssh\,emoji\,calc -show combi -modi combi\,run\,ssh\,emoji\,calc -sidebar-mode -show-icons -normal-window #bindsym $mod+space exec $menu + + + +# +# App launcher mode +# +# This mode let's you quickly lunch an app, bound to a hotkey or the $menu app +# launcher. Default mode switch is $mod+space. +# - pressing $mod+space twice quickly launches $menu +# - pressing $mod+space, then one of the app 'shortcuts' launches the app +# After any actions, the mode resets to default within $appmode_timeout seconds +set $appmode_timeout 1 + +mode "app" { + bindsym $mod+space exec $menu + bindsym --release $mod+space mode "default" + + # Mnemonic: [b]rowser + bindsym b exec MOZ_ENABLE_WAYLAND=1 firefox-developer-edition + # Mnemonic: [f]ile explorer + bindsym f exec $term -e bash -ci 'ranger' + # Mnemonic: [F]ile explorer, GUI + bindsym shift+f exec thunar + # Mnemonic: [m]usic + bindsym m exec $term -e bash -ci 'ncmpcpp' + # Mnemonic: [n]otes + bindsym n exec $term -e bash -ci 'notes' + # Mnemonic: [h]ome + bindsym h exec $term -e bash -ci 'home' + # Mnemonic: [o]pen. Opens a quick browser with ripgrep's result + bindsym o exec xdg-open "$(rg --files | rofi -normal-window -dmenu -i)" + # Mnemonic: [p]assword + bindsym p exec bwmenu --auto-lock 604800 -- -normal-window + # Mnemonic: [v]irtual machine + bindsym v exec env QT_QPA_PLATFORM=xcb virtualbox + # Mnemonic: [w]indows 10 + bindsym w exec env QT_QPA_PLATFORM=xcb vboxmanage startvm Windows10 + # Mnemonic: [a]rch linux + bindsym a exec env QT_QPA_PLATFORM=xcb vboxmanage startvm Arch + # Mnemonix: tmu[x] + bindsym x exec $term -e bash -ci 'tmux-session' + + bindsym c exec code-insiders --enable-features=UseOzonePlatform --ozone-platform=wayland + + bindsym s exec slack --enable-features=UseOzonePlatform --ozone-platform=wayland + + bindsym Escape mode "default" +} +bindsym $mod+space exec swaymsg mode "app" && sleep $appmode_timeout && swaymsg mode "default" + + + # change focus bindsym $mod+j focus left bindsym $mod+k focus down @@ -188,9 +241,10 @@ for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Require for_window [title="^Steam Keyboard$"] floating enable for_window [title="Qalculate!"] floating enable for_window [title="Origin"] floating enable +for_window [title="Firefox Developer Edition - Sharing Indicator"] floating enable #for_window [title="Zoom"] floating enable #for_window [title="Zoom Cloud Meetings"] floating enable - +for_window [class="Rofi"] floating enable # Zoom for_window [app_id="zoom"] floating enable for_window [app_id="zoom" title="Choose ONE of the audio conference options"] floating enable @@ -267,24 +321,7 @@ bindsym $mod+Control+Left resize shrink width 5 px or 5 ppt bar { swaybar_command waybar } -# -#bar { -# position top -# status_command i3blocks -# font pango:Liberation 10, FontAwesome 12 -# strip_workspace_numbers yes -# -# colors { -# separator #586e75 -# background #0c1014 -# statusline #aea79f -# focused_workspace #091f2e #091f2e #ffffff -# active_workspace #073642 #073642 #ffffff -# inactive_workspace #0c1014 #0c1014 #aea79f -# urgent_workspace #77216f #77216f #ffffff -# } -#} # class border backgr. text indicator child_border client.focused #FFFFFF #BF360C #fdf6e3 #FF0000 #FFFFFF client.focused_inactive #073642 #FF9800 #93a1a1 #002b36 #073642 @@ -296,7 +333,8 @@ client.urgent #dc322f #b71c1c #fdf6e3 #dc322f #dc322f ############################ #HOME output HDMI-A-1 pos 0 0 res 3440x1440 -output DP-1 pos 0 1440 res 3440x1440 +output DP-1 pos 0 1440 res 3440x1440@59.999Hz +output DP-2 pos 0 1440 res 3440x1440@59.999Hz # background images #output * bg ~/Pictures/Wallpapers/calvin-hobbes-stars.jpg fill output * bg ~/Pictures/Wallpapers/pexels-jakub-novacek-924824.jpg fill diff --git a/.config/waybar/config b/.config/waybar/config index 8711517..4419d41 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -224,9 +224,9 @@ "sway/window", ], "modules-center": [ - "sway/workspaces" ], "modules-right": [ + "sway/workspaces" ], "sway/workspaces": { "disable-scroll": true,