some changes

This commit is contained in:
Adrian Gunnar Lauterer 2023-05-19 16:00:17 +02:00
parent 41584f4eff
commit 733df2399f
Signed by: adriangl
GPG Key ID: D33368A59745C2F0
10 changed files with 41 additions and 21 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

BIN
Wallpapers/w5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

22
config
View File

@ -19,7 +19,8 @@ set $dir /home/gunalx/.config/sway
# Your preferred application launcher # Your preferred application launcher
# 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 $menu dmenu_path | wofi --dmenu --y 20 --heigth 60% --width 100% --font "Hack-Bold 12" | xargs swaymsg exec --
set $primary_display eDP-1 set $primary_display eDP-1
#startup #startup
@ -34,8 +35,8 @@ assign [class="autostart2"] workspace 2
assign [class="autostart3"] workspace 3 assign [class="autostart3"] workspace 3
assign [class="autostart4"] workspace 4 assign [class="autostart4"] workspace 4
exec $term --class autostart1 exec firefox
exec firefox --class autostart2 exec $term --class autostart2
exec code --class autostart3 exec code --class autostart3
@ -51,21 +52,23 @@ exec code --class autostart3
### Output configuration ### Output configuration
#display configuration #display configuration
exec swaymsg focus output eDP-1 exec swaymsg focus output eDP-1
output eDP-1 pos 0 0 res 3840x216 output eDP-1 pos 0 360 res 3840x2160
output DP-1 pos 1920 0 output DP-1 pos 3840 0 res 3440x1440
output DP-2 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 /home/gunalx/.config/sway/wallpaper.sh
# Idle configuration screenlocker # Idle configuration screenlocker
#bindsym $mod+m exec ~/.config/sway/lock.sh && brightnessctl -d intel_backlight s 50% #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% 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
#gaps set 2 #gaps set 2
@ -119,6 +122,7 @@ input * {
#screenshot #screenshot
bindsym $mod+f11 exec /home/gunalx/.config/sway/screenshot.sh bindsym $mod+f11 exec /home/gunalx/.config/sway/screenshot.sh
bindsym $mod+Print exec /home/gunalx/.config/sway/screenshot.sh
# Alt tab window switching. # Alt tab window switching.
#bindsym $mod+tab workspace next_on_output #bindsym $mod+tab workspace next_on_output
@ -168,6 +172,7 @@ input * {
# #
# Switch to workspace # Switch to workspace
#bindsym $mod+49 workspace number 0 #added to bypass problems with autonaming #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+1 workspace number 1
bindsym $mod+2 workspace number 2 bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3 bindsym $mod+3 workspace number 3
@ -180,6 +185,7 @@ input * {
bindsym $mod+0 workspace number 10 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+bar move container to workspace number 0
bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+3 move container to workspace number 3

View File

@ -10,7 +10,7 @@ i3status-rust # have not actually loocked into it, but seems promising w
networkmanager-applet # not properly implemented networkmanager-applet # not properly implemented
#gui display configurator #gui display configurator
wdisplays wdisplays #kinda breaks when reloading.
#lockscreen #lockscreen
swaylock-effects swaylock-effects
@ -19,6 +19,9 @@ swayidle
#terminal #terminal
foot foot
#menu
wofi
#brightnesscontrol #brightnesscontrol
brightnessctl brightnessctl
@ -33,11 +36,16 @@ slurp
swaybg swaybg
#div #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. ttf-fonts-awesome #at least used by dynamic names, and cool to have.
otf-font-awesome #same as above otf-font-awesome #same as above
find #used for finding raondom background screens find #used for finding raondom background screens
i3ipc #kinda cool python stuff for https://github.com/nwg-piotr/swayinfo
#hidpi kinda optional #hidpi kinda optional
wlroots-hidpi wlroots-hidpi

View File

@ -1,7 +1,7 @@
swayidle \ swayidle \
timeout 300 '~/.config/sway/idlelock.sh' \ timeout 120 '/home/gunalx/.config/sway/idlelock.sh' \
timeout 600 'swaymsg "output * dpms off"' \ timeout 180 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep '~/.config/sway/idlelock.sh' before-sleep '/home/gunalx/.config/sway/idlelock.sh'

View File

@ -19,6 +19,6 @@ swaylock -e \
--effect-scale 2 \ --effect-scale 2 \
--effect-vignette 0.5:0.5 \ --effect-vignette 0.5:0.5 \
# --effect-compose "50%,50%;20%x20%;center;$HOME/.config/sway/lockscreen.jpg" \ # --effect-compose "50%,50%;20%x20%;center;$HOME/.config/sway/lockscreen.jpg" \
"$@" "$@" \
&& \
brightnessctl -d intel_backlight s 50% brightnessctl -d intel_backlight s 50%

View File

@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
FILENAME="screenshot-`date +%F-%T`" FILENAME="screenshot-$(date +%F-%T).png"
grim -g "$(slurp)" ~/Pictures/screenshots/$FILENAME.png SCREENSHOT_PATH="$HOME/Pictures/screenshots/$FILENAME"
swaymsg screenshot -o $SCREENSHOT_PATH
echo -n $SCREENSHOT_PATH | wl-copy

3
screenshot.sh.bac Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
FILENAME="screenshot-`date +%F-%T`"
grim -g "$(slurp)" ~/Pictures/screenshots/$FILENAME.png

View File

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

View File

@ -104,8 +104,8 @@
// "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%+",
"on-scroll-down": "brightnessctl set 2%-" "on-scroll-up": "brightnessctl set 2%-"
}, },
"battery": { "battery": {