diff --git a/sway/.config/sway/config b/sway/.config/sway/config
index 7ffb634d9712285724b41b9bd3332d39946eda2b..10862bb274207c049017dbed449ca1344af3ffb0 100644
--- a/sway/.config/sway/config
+++ b/sway/.config/sway/config
@@ -4,7 +4,7 @@ # Logo key. Use Mod1 for Alt.
set $mod Mod4
set $alt Mod1
# Font
-font pango:Hack 11
+font pango:Hack 12px
# Home row direction keys, like vim
set $left h
set $down j
@@ -12,17 +12,23 @@ set $up k
set $right l
#
set $term alacritty
-exec GDK_BACKEND=wayland ulauncher --hide-window
-for_window [app_id="ulauncher"] floating enable, border none
+set $menu exec $term --class=launcher -e /home/michal/.local/bin/sway-launcher-desktop.sh
+for_window [class="PacketTracer"] floating enable, border none
+for_window [class="Galculator"] floating enable
+for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 2
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
-output "*" bg /home/michal/Media/Pictures/wallpaper.jpg fill
-
+output "eDP-1"
# Output:
#
-output eDP-1 position 0,0
-output DP-5 pos 1360,0
+set $laptop eDP-1
+set $external DP-5
+bindswitch --reload --locked lid:on output $laptop disable
+bindswitch --reload --locked lid:off output $laptop enable
+
+output $laptop position 0,0 bg /home/michal/Media/Pictures/wallpaper.jpg fill
+output $external pos 1360,0 bg /home/michal/Media/Pictures/wallpaper2.jpg fill
#
### Idle configuration
#
@@ -46,10 +52,10 @@ # tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
- input * {
+input * {
xkb_layout "pl"
xkb_options "caps:escape"
- }
+}
# 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.
@@ -64,7 +70,8 @@ # Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
- bindsym $alt+space exec "ulauncher" #"rofi -show drun -show-icons"
+ bindsym $alt+space exec $menu
+ #"/home/michal/.local/bin/dmenu_run_history" #"rofi -show drun -show-icons"
#"fuzzel -f hack:size=11 -b 222222ff -t bbbbbbff -s 2f2f2fff -r 0 -m 2f74b5ff"
# Drag floating windows by holding down $mod and left mouse button.
@@ -89,14 +96,17 @@ bindsym --locked $alt+F2 exec "playerctl previous"
bindsym --locked XF86AudioRaiseVolume exec "/home/michal/.local/bin/vol up"
bindsym --locked XF86AudioLowerVolume exec "/home/michal/.local/bin/vol down"
bindsym --locked XF86AudioMute exec "/home/michal/.local/bin/vol mute"
- bindsym --locked XF86AudioMicMute exec "pactl set-source-mute 43 toggle"
+ bindsym --locked XF86AudioMicMute exec "pactl set-source-mute 44 toggle"
bindsym --locked XF86MonBrightnessUp exec "/home/michal/.local/bin/brightness up"
bindsym --locked XF86MonBrightnessDown exec "/home/michal/.local/bin/brightness down"
+ bindsym $mod+Shift+Escape exec "/home/michal/.local/bin/floating alacritty -e gotop"
+ bindsym $mod+p exec 'swaymsg "output eDP-1 toggle"'
+ bindsym $mod+Shift+p exec 'swaymsg "output DP-5 toggle"'
bindsym $alt+Control+Delete exec "reboot"
bindsym $mod+Shift+Delete exec "playerctl stop | swaylock -i /home/michal/Media/Pictures/lock.png -s fill -u | systemctl hibernate"
bindsym $mod+Control+l exec "swaylock -i /home/michal/Media/Pictures/lock.png -s fill -u"
- bindsym Control+space exec "dunstctl close-all"
- bindsym Control+h exec "dunstctl history-pop"
+ bindsym $alt+c exec "dunstctl close-all"
+ bindsym $alt+h exec "dunstctl history-pop"
bindsym $mod+F11 exec "gammastep -O 2000K"
bindsym $mod+F12 exec "gammastep -x"
bindsym $mod+x exec "killall -SIGUSR1 waybar"
@@ -219,11 +229,11 @@ bindsym $mod+r mode "resize"
# Colors
set $bgb #282a36
-set $bg #282a36AA
+set $bg #282a36bf
set $fg #f8f8f2
set $tf #f8f8f2AA
set $hi #f1fa7c
-set $tx #040404
+set $tx #ffffff
set $pk #ff79c6
# yellow
set $yw #f1fa7c