diff --git a/Wallpapers/w4.jpg b/Wallpapers/w4.jpg deleted file mode 100644 index 4bccc50..0000000 Binary files a/Wallpapers/w4.jpg and /dev/null differ diff --git a/Wallpapers/w5.jpg b/Wallpapers/w5.jpg new file mode 100644 index 0000000..029c9f9 Binary files /dev/null and b/Wallpapers/w5.jpg differ diff --git a/config b/config index 6dd3678..e600303 100644 --- a/config +++ b/config @@ -19,7 +19,8 @@ set $dir /home/gunalx/.config/sway # 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 dmenu_path | dmenu | xargs swaymsg exec -- +#set $menu dmenu_path | dmenu | xargs swaymsg exec -- +set $menu dmenu_path | wofi --dmenu --y 20 --heigth 60% --width 100% --font "Hack-Bold 12" | xargs swaymsg exec -- set $primary_display eDP-1 #startup @@ -34,8 +35,8 @@ assign [class="autostart2"] workspace 2 assign [class="autostart3"] workspace 3 assign [class="autostart4"] workspace 4 -exec $term --class autostart1 -exec firefox --class autostart2 +exec firefox +exec $term --class autostart2 exec code --class autostart3 @@ -51,21 +52,23 @@ exec code --class autostart3 ### Output configuration #display configuration exec swaymsg focus output eDP-1 -output eDP-1 pos 0 0 res 3840x216 -output DP-1 pos 1920 0 -output DP-2 pos 1920 0 +output eDP-1 pos 0 360 res 3840x2160 +output DP-1 pos 3840 0 res 3440x1440 +#output DP-2 pos 1920 0 # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) #output * bg /usr/share/backgrounds/sway/vaporwave-Sun-mountains-1408599-2364227326.jpg fill #output * bg (find ./Wallpapers -type f | shuf -n 1) fill # output HDMI-A-1 resolution 1920x1080 position 1920,0 -exec $dir/wallpaper.sh +exec /home/gunalx/.config/sway/wallpaper.sh # Idle configuration screenlocker #bindsym $mod+m exec ~/.config/sway/lock.sh && brightnessctl -d intel_backlight s 50% bindsym $mod+m exec $dir/lock.sh && brightnessctl -d intel_backlight s 50% -exec $dir/idle.sh +exec /home/gunalx/.config/sway/idle.sh + +exec_always --no-startup-id exec sway-dynamic-names #gaps #gaps set 2 @@ -119,6 +122,7 @@ input * { #screenshot bindsym $mod+f11 exec /home/gunalx/.config/sway/screenshot.sh + bindsym $mod+Print exec /home/gunalx/.config/sway/screenshot.sh # Alt tab window switching. #bindsym $mod+tab workspace next_on_output @@ -168,6 +172,7 @@ input * { # # Switch to workspace #bindsym $mod+49 workspace number 0 #added to bypass problems with autonaming + #bindsym $mod+bar workspace number 0 bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 @@ -180,6 +185,7 @@ input * { bindsym $mod+0 workspace number 10 # Move focused container to workspace #bindsym $mod+Shift+'|' move container to workspace number 0 #like on switch + #bindsym $mod+Shift+bar move container to workspace number 0 bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+3 move container to workspace number 3 diff --git a/dependencies.md b/dependencies.md index 890a066..8214385 100644 --- a/dependencies.md +++ b/dependencies.md @@ -10,7 +10,7 @@ i3status-rust # have not actually loocked into it, but seems promising w networkmanager-applet # not properly implemented #gui display configurator -wdisplays +wdisplays #kinda breaks when reloading. #lockscreen swaylock-effects @@ -19,6 +19,9 @@ swayidle #terminal foot +#menu +wofi + #brightnesscontrol brightnessctl @@ -33,11 +36,16 @@ slurp swaybg #div -sway-dynamic-names #really buggy, but kinda nice +sway-dynamic-names #really buggy, but kinda nice auto emoji, waiting for patch to 1 index ttf-fonts-awesome #at least used by dynamic names, and cool to have. otf-font-awesome #same as above find #used for finding raondom background screens +i3ipc #kinda cool python stuff for https://github.com/nwg-piotr/swayinfo + + + + #hidpi kinda optional wlroots-hidpi diff --git a/idle.sh b/idle.sh index 2950924..7743130 100755 --- a/idle.sh +++ b/idle.sh @@ -1,7 +1,7 @@ swayidle \ - timeout 300 '~/.config/sway/idlelock.sh' \ - timeout 600 'swaymsg "output * dpms off"' \ + timeout 120 '/home/gunalx/.config/sway/idlelock.sh' \ + timeout 180 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ - before-sleep '~/.config/sway/idlelock.sh' + before-sleep '/home/gunalx/.config/sway/idlelock.sh' diff --git a/idlelock.sh b/idlelock.sh index 078bde9..9ffa2b5 100755 --- a/idlelock.sh +++ b/idlelock.sh @@ -19,6 +19,6 @@ swaylock -e \ --effect-scale 2 \ --effect-vignette 0.5:0.5 \ # --effect-compose "50%,50%;20%x20%;center;$HOME/.config/sway/lockscreen.jpg" \ - "$@" - + "$@" \ +&& \ brightnessctl -d intel_backlight s 50% diff --git a/screenshot.sh b/screenshot.sh index d01ca6b..0f044a7 100755 --- a/screenshot.sh +++ b/screenshot.sh @@ -1,3 +1,6 @@ #!/bin/bash -FILENAME="screenshot-`date +%F-%T`" -grim -g "$(slurp)" ~/Pictures/screenshots/$FILENAME.png +FILENAME="screenshot-$(date +%F-%T).png" +SCREENSHOT_PATH="$HOME/Pictures/screenshots/$FILENAME" +swaymsg screenshot -o $SCREENSHOT_PATH +echo -n $SCREENSHOT_PATH | wl-copy + diff --git a/screenshot.sh.bac b/screenshot.sh.bac new file mode 100755 index 0000000..d01ca6b --- /dev/null +++ b/screenshot.sh.bac @@ -0,0 +1,3 @@ +#!/bin/bash +FILENAME="screenshot-`date +%F-%T`" +grim -g "$(slurp)" ~/Pictures/screenshots/$FILENAME.png diff --git a/wallpaper.sh b/wallpaper.sh index ad2b08c..27b42e8 100755 --- a/wallpaper.sh +++ b/wallpaper.sh @@ -1,10 +1,10 @@ #!/bin/sh dir=/home/gunalx/.config/sway/Wallpapers -swaybg -i $(find $dir -type f | shuf -n 1) -m fill & +swaybg -i $(find $dir -type f | shuf -n 1) -m fill && OLD_PID=$! while true; do - sleep 6000 + sleep 3000 swaybg -i $(find $dir -type f | shuf -n1) -m fill & NEXT_PID=$! sleep 5 diff --git a/waybar.d/config b/waybar.d/config index 31bc191..067fefc 100644 --- a/waybar.d/config +++ b/waybar.d/config @@ -104,8 +104,8 @@ // "device": "acpi_video1", "format": "{percent}% {icon}", "format-icons": ["", "", "", "", "", "", "", "", ""], - "on-scroll-up": "brightnessctl set 2%+", - "on-scroll-down": "brightnessctl set 2%-" + "on-scroll-down": "brightnessctl set 2%+", + "on-scroll-up": "brightnessctl set 2%-" }, "battery": {