fixed wallpapers ?

This commit is contained in:
Adrian Gunnar Lauterer 2023-03-18 22:54:59 +01:00
parent 2edd79e328
commit 41584f4eff
Signed by: adriangl
GPG Key ID: D33368A59745C2F0
4 changed files with 38 additions and 17 deletions

40
config
View File

@ -20,19 +20,19 @@ set $dir /home/gunalx/.config/sway
# Note: pass the final command to swaymsg so that the resulting window can be opened # 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. # 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 $primary_display eDP-1
#startup #startup
input type:keyboard xkb_capslock disabled input type:keyboard xkb_capslock disabled
input type:keyboard xkb_numlock enabled input type:keyboard xkb_numlock enabled
xwayland enable
#autostart applications #autostart applications
#exec $dir/autostart.sh #exec $dir/autostart.sh
assign [app_id="autostart1"] workspace 1 assign [class="autostart1"] workspace 1
assign [app_id="autostart2"] workspace 2 assign [class="autostart2"] workspace 2
assign [app_id="autostart3"] workspace 3 assign [class="autostart3"] workspace 3
assign [app_id="autostart4"] workspace 4 assign [class="autostart4"] workspace 4
exec $term --class autostart1 exec $term --class autostart1
exec firefox --class autostart2 exec firefox --class autostart2
@ -49,9 +49,15 @@ exec code --class autostart3
### Output configuration ### 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
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # 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 /usr/share/backgrounds/sway/vaporwave-Sun-mountains-1408599-2364227326.jpg fill
#output * bg (find ./Wallpapers -type f | shuf -n 1) fill #output * bg (find ./Wallpapers -type f | shuf -n 1) fill
# output HDMI-A-1 resolution 1920x1080 position 1920,0 # output HDMI-A-1 resolution 1920x1080 position 1920,0
exec $dir/wallpaper.sh exec $dir/wallpaper.sh
@ -61,8 +67,11 @@ exec $dir/wallpaper.sh
bindsym $mod+m exec $dir/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 $dir/idle.sh
#gaps
#gaps set 2
### Input configuration # You can get the names of your inputs by running: swaymsg -t get_inputs ### Input configuration
# You can get the names of your inputs by running: swaymsg -t get_inputs
input "1739:30383:DELL07E6:00_06CB:76AF_Touchpad" { input "1739:30383:DELL07E6:00_06CB:76AF_Touchpad" {
dwt enabled dwt enabled
tap enabled tap enabled
@ -75,6 +84,8 @@ input * {
} }
# #
### Key bindings ### Key bindings
# #
@ -102,6 +113,10 @@ input * {
bindsym XF86Search exec $menu bindsym XF86Search exec $menu
#shortcuts for applications
bindsym $mod+Shift+f exec firefox
#screenshot #screenshot
bindsym $mod+f11 exec /home/gunalx/.config/sway/screenshot.sh bindsym $mod+f11 exec /home/gunalx/.config/sway/screenshot.sh
@ -162,7 +177,7 @@ input * {
bindsym $mod+7 workspace number 7 bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8 bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9 bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 0 bindsym $mod+0 workspace number 10
# Move focused container to workspace # Move focused container to workspace
#bindsym $mod+Shift+'|' move container to workspace number 0 #like on switch #bindsym $mod+Shift+'|' move container to workspace number 0 #like on switch
bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+1 move container to workspace number 1
@ -174,7 +189,7 @@ input * {
bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 0 bindsym $mod+Shift+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers. # Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default. # We just use 1-10 as the default.
# #
@ -211,8 +226,6 @@ input * {
# Move the currently focused window to the scratchpad # Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move 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.
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
# #
# Resizing containers: # Resizing containers:
@ -239,6 +252,9 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
#rotate window
bindsym $mod+Shift+w exec wdisplays

View File

@ -9,7 +9,8 @@ waybar #instead of swaybar
i3status-rust # have not actually loocked into it, but seems promising with swaybar if waybar is not the better solution i3status-rust # have not actually loocked into it, but seems promising with swaybar if waybar is not the better solution
networkmanager-applet # not properly implemented networkmanager-applet # not properly implemented
#gui display configurator
wdisplays
#lockscreen #lockscreen
swaylock-effects swaylock-effects

View File

@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
swaybg -i $(find ./Wallpapers -type f | shuf -n 1) -m fill & dir=/home/gunalx/.config/sway/Wallpapers
swaybg -i $(find $dir -type f | shuf -n 1) -m fill &
OLD_PID=$! OLD_PID=$!
while true; do while true; do
sleep 6000 sleep 6000
swaybg -i $(find ./Wallpapers -type f | shuf -n1) -m fill & swaybg -i $(find $dir -type f | shuf -n1) -m fill &
NEXT_PID=$! NEXT_PID=$!
sleep 5 sleep 5
kill $OLD_PID kill $OLD_PID

View File

@ -103,7 +103,10 @@
"backlight": { "backlight": {
// "device": "acpi_video1", // "device": "acpi_video1",
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", ""],
"on-scroll-up": "brightnessctl set 2%+",
"on-scroll-down": "brightnessctl set 2%-"
}, },
"battery": { "battery": {
"states": { "states": {