From 30e7d53dfb89e418e94540b021796ce18c4b1db5 Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 20 Jan 2021 13:12:16 +0000 Subject: [PATCH 1/4] Deleted Autostart --- .config/sway/autostart | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .config/sway/autostart diff --git a/.config/sway/autostart b/.config/sway/autostart deleted file mode 100644 index 0876faa..0000000 --- a/.config/sway/autostart +++ /dev/null @@ -1,16 +0,0 @@ -# Autostart - -#Notification -exec mako -#Network Applet -exec nm-applet --indicator -#Polkit Agnet (don't remove please unless replacing) -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -#Night Filter -#exec gammastep - - -#Wallpaper -exec swaybg -i $HOME/.config/sway/wallpaper.png - - From 2bc21483415e141c7d5a43c1d5aa0d83b689eff9 Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 20 Jan 2021 13:27:45 +0000 Subject: [PATCH 2/4] Added example config for output displays! --- .config/sway/config | 50 +++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index f1cfca0..93d7c4e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -19,16 +19,20 @@ set $term alacritty # Your preferred application launcher - (You can also use dmenu or rofi) set $menu wofi -c ~/.config/wofi/config -I -# workspace layouts: -#default i3 tiling mode -workspace_layout default +# set wallpaper: +exec swaybg -i ~/.config/sway/wallpaper.png +# Desktop notifications +exec mako + +# workspace layouts: +workspace_layout default # Set inner/outer gaps gaps inner 2 gaps outer 0 -#do not show titlebar on windows: +# do not show titlebar on windows: default_border pixel 1 # get auth work with polkit-gnome: @@ -118,9 +122,6 @@ for_window [app_id=thunar] focus assign [class="TelegramDesktop"] 5 for_window [class=TelegramDesktop] focus -#set wallpaper: -exec swaybg -i ~/.config/sway/wallpaper.png - # Idle Config exec swayidle -w\ timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\ @@ -131,10 +132,6 @@ exec swayidle -w\ # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. - -# Desktop notifications -exec mako - # set floating (nontiling)for apps needing it: for_window [class="Yad" instance="yad"] floating enable for_window [class="Galculator" instance="galculator"] floating enable @@ -148,6 +145,15 @@ for_window [class="Blueberry.py" instance="blueberry.py"] floating enable for_window [class="Bluetooth-sendto" instance="bluetooth-sendto"] floating enable for_window [class="Pamac-manager"] floating enable +# set floating for window roles +for_window [window_role="pop-up"] floating enable +for_window [window_role="bubble"] floating enable +for_window [window_role="task_dialog"] floating enable +for_window [window_role="Preferences"] floating enable +for_window [window_type="dialog"] floating enable +for_window [window_type="menu"] floating enable +for_window [window_role="About"] floating enable + # resize floating windows with mouse scroll: bindsym --whole-window --border $mod+button4 resize shrink height 5 px or 5 ppt bindsym --whole-window --border $mod+button5 resize grow height 5 px or 5 ppt @@ -166,12 +172,11 @@ for_window [class="^.*"] border pixel 1 # Sway has a "scratchpad", which is a bag of holding for windows. # You can send windows there and get them back later. -#Move the currently focused window to the scratchpad +# Move the currently focused window to the scratchpad bindsym $mod+Shift+minus move scratchpad -#Show the next scratchpad window or hide the focused scratchpad window. -#If there are multiple scratchpad windows, this command cycles through them. - +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. bindsym alt+tab scratchpad show bindsym $mod+minus scratchpad show @@ -203,9 +208,6 @@ bindsym $mod+Shift+9 move container to workspace 9 # reload the configuration file: bindsym $mod+Shift+c reload -# restart sway inplace (preserves your layout/session, can be used to upgrade sway): -bindsym $mod+Shift+r restart - # resize window (you can also use the mouse for that): mode "resize" { # These bindings trigger as soon as you enter the resize mode @@ -241,6 +243,7 @@ bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume 0 -3% # mute bindsym --locked XF86AudioMute exec pactl set-sink-mute 0 toggle +# media bindsym XF86AudioPlay exec playerctl play bindsym XF86AudioPause exec playerctl pause bindsym XF86AudioNext exec playerctl next @@ -275,8 +278,6 @@ client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36 client.background #F8F8F2 - - # Input configuration input "1267:12363:ELAN0650:01_04F3:304B_Touchpad" { dwt enabled @@ -288,6 +289,15 @@ client.background #F8F8F2 # You can get the names of your inputs by running: swaymsg -t get_input. # Put your touchpad's ID to replace "1267:12363:ELAN0650:01_04F3:304B_Touchpad" (keep the quotation marks) +### Output configuration +# +# Example configuration: +# +# output HDMI1 pos 0 0 res 1920x1080 +# output eDP1 pos 1920 0 res 1600x900 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + # Status Bar: bar { From 166c4d13d78ca312ac8d4b3cef876f6d2a37f2de Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 20 Jan 2021 13:29:54 +0000 Subject: [PATCH 3/4] Just a few typos! --- .config/waybar/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index 121ad1b..6adf6d8 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -214,7 +214,7 @@ }, "custom/files": { "format": " Files", - "on-click": "thunar", + "on-click": "exec thunar", "tooltip": false }, "custom/seperator": { @@ -230,4 +230,4 @@ } -//To set weather look in the weather script and replace $LOCATION with your LOCATION +//To set weather look in the weather script From 5974fdb7c9f2946a88023a7e31dd14c6aa89c33d Mon Sep 17 00:00:00 2001 From: OdiousImp2604 <74424076+OdiousImp2604@users.noreply.github.com> Date: Wed, 20 Jan 2021 13:34:13 +0000 Subject: [PATCH 4/4] Updated Readme. --- README.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c5893c2..8a59932 100644 --- a/README.md +++ b/README.md @@ -18,21 +18,26 @@ Unoffical - To Install cp .profile ~/.profile chmod -R +x ~/.config/sway/scripts (make scripts executable) + + chmod -R +x ~/.config/waybar/scripts Install Needed Packages sudo pacman -S --needed - < packages-repository.txt - Also please install "wlogout" available in the AUR + Also please install "wlogout" available in the AUR (No longer needed!) -To-Do (as of 19/1/21) +To-Do (as of 20/1/21) - Bar is finished just need to clean up the config -- Wlogout or A Sway Mode -- Hmmm, I can't think of anything else? : +- Intergrate Power Menu +- Hmmm, I can't think of anything else? +- Working on replicating sway's default keybindings over i3's Keybindings -Everything is the same as the i3, there is not yet a reference file (working on it) +Everything is the same as the i3 (for now!) , there is not yet a reference file (working on it) -One thing that changed : To launch wofi is is super+D , I recommend you look through the config for sway has some extra features which I added +One thing that changed : To launch wofi is is super+D , I recommend you look through the config for sway has some extra features which I added. + +eg: - A scratchpad