diff --git a/.config/sway/config b/.config/sway/config index a7d2690a0566b8a76795fb274296fc747c977557..0a99a88bc5683c6cefffeb54b385f5143d6ff9ac 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -1,75 +1,11 @@ -# Default config for sway -# -# -# Copy this to ~/.config/sway/config and edit it to your liking. -# -# Read `man 5 sway` for a complete reference. - -### Variables -# # Logo key. Use Mod1 for Alt. set $mod Mod4 -# Your preferred terminal emulator -set $term konsole -# Your preferred application launcher -# Note: pass the final command to swaymsg so that the resulting window can be opened -# on the original workspace that the command was run on. -set $menu rofi -show drun - -### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /home/blint/Pictures/bg/the-last-of-us-part-ii-duality-artwork-dark-desktop-image-block-01-ps4-06feb20-en-us.jpeg fill -# -# Example configuration: -# -# output HDMI-A-1 resolution 1920x1080 position 1920,0 -# -# -output eDP-1 pos 0 0 scale 1.25 -output HDMI-A-1 pos 1536 0 -# You can get the names of your outputs by running: swaymsg -t get_outputs - -### Idle configuration -# -# Example configuration: -# -# exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ -# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ -# before-sleep 'swaylock -f -c 000000' -# -# This will lock your screen after 300 seconds of inactivity, then turn off -# 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. - -### Input configuration -# -# Example configuration: -# -# input "2:14:SynPS/2_Synaptics_TouchPad" { -# dwt enabled -# tap enabled -# natural_scroll enabled -# middle_emulation enabled -# } -# -# You can get the names of your inputs by running: swaymsg -t get_inputs -# Read `man 5 sway-input` for more information about this section. -### Key bindings -# # Basics: -# - # Start a terminal - bindsym $mod+Return exec $term # Kill focused window bindsym $mod+Shift+q kill - # Start your launcher - bindsym $mod+d exec $menu - # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. @@ -101,6 +37,7 @@ output HDMI-A-1 pos 1536 0 bindsym $mod+Control+Shift+Left move workspace to output left bindsym $mod+Control+Shift+Right move workspace to output right + # # Workspaces: # @@ -129,19 +66,14 @@ output HDMI-A-1 pos 1536 0 # Note: workspaces can have any name you want, not just numbers. # We just use 1-10 as the default. -# -# Layout stuff: -# - # You can "split" the current object of your focus with - # $mod+b or $mod+v, for horizontal and vertical splits - # respectively. + #spliting bindsym $mod+h splith bindsym $mod+v splitv # Switch the current container between different layout styles bindsym $mod+s layout stacking bindsym $mod+w layout tabbed -# bindsym $mod+e layout toggle split + bindsym $mod+e layout toggle split # Make the current focus fullscreen bindsym $mod+f fullscreen @@ -154,11 +86,6 @@ output HDMI-A-1 pos 1536 0 # Move focus to the parent container bindsym $mod+a focus parent -# -# Scratchpad: -# - # 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 bindsym $mod+Shift+minus move scratchpad @@ -187,84 +114,25 @@ mode "resize" { } bindsym $mod+r mode "resize" + # # Status Bar: # # Read `man 5 sway-bar` for more information about this section. -#bar { -# position top -# +bar { + position top + # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. -# status_command i3status -# colors { -# statusline #ffffff -# background #323232 -# inactive_workspace #32323200 #32323200 #5c5c5c -# } -#} - -exec bash -c "sleep 5; waybar" - -include /etc/sway/config.d/* - -input "2:7:SynPS/2_Synaptics_TouchPad" { - tap enabled - natural_scroll enabled -} - -input * { - xkb_layout "gb,hu" - xkb_variant "" - xkb_options "grp:caps_toggle" + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } + status_command i3status } -bindsym XF86Favorites exec firefox - -bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2% -bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2% -bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle - -bindsym XF86MonBrightnessUp exec brightnessctl set +5% -d intel_backlight && brightnessctl set +5% -d ddcci3 -bindsym XF86MonBrightnessDown exec brightnessctl set 5%- -d intel_backlight && brightnessctl set 5%- -d ddcci3 - -set $lock "swaylock -i Pictures/bg/cheetah.png" -bindsym $mod+l exec $lock - -exec mako -exec xembedsniproxy -exec nm-applet --indicator -exec wmname LG3D -bindsym --release Print exec grim -g \"$(slurp)" - | wl-copy - -for_window [app_id="firefox" title="Firefox - Sharing Indicator"] { - kill -} -bindsym Mod1+Escape exec emoji.sh -bindsym $mod+e exec dolphin - -workspace 2 output HDMI-A-1 -workspace 1 output HDMI-A-1 -workspace 9 output eDP-1 -workspace 8 output eDP-1 - -assign [app_id="telegramdesktop"] workspace 9 -assign [class="Mattermost"] workspace 9 -#for_window [title="Messenger - Mozilla Firefox"] move workspace 9 -for_window [class="Spotify"] move workspace 8 -assign [title="autostart — Konsole"] workspace 2 - -exec bash -c "sleep 10; nm-applet --indicator" -exec telegram-desktop -exec flatpak run com.mattermost.Desktop -#exec spotify -#exec firefox -exec konsole -p tabtitle='autostart' -exec konsole -p tabtitle='autostart' - -exec swayidle -w \ - timeout 300 $lock \ - timeout 600 'swaymsg "output * dpms off"' \ - timeout 1200 'systemctl suspend' \ - resume 'swaymsg "output * dpms on"' \ - before-sleep $lock +include /etc/sway/config.d/* +include ~/.config/sway/conf.d/* \ No newline at end of file