diff options
Diffstat (limited to '')
| -rw-r--r-- | home-config/sway/config.d/idle | 5 | ||||
| -rw-r--r-- | home-config/sway/logout.d/power/img/lock-hover.png | bin | 6421 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/lock.png | bin | 6692 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/logout-hover.png | bin | 6076 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/logout.png | bin | 6612 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/power-hover.png | bin | 6995 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/power.png | bin | 6996 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/restart-hover.png | bin | 6846 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/restart.png | bin | 7355 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/sleep-hover.png | bin | 6094 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/img/sleep.png | bin | 6683 -> 0 bytes | |||
| -rw-r--r-- | home-config/sway/logout.d/power/layout | 30 | ||||
| -rw-r--r-- | home-config/sway/logout.d/power/style.css | 76 | ||||
| -rwxr-xr-x | home-config/sway/scripts.d/auto.sh | 19 | ||||
| -rw-r--r--[-rwxr-xr-x] | home/config/desktop-common/wallpapers/blue.jpg (renamed from home-config/sway/wallpapers/blue.jpg) | bin | 1539393 -> 1539393 bytes | |||
| -rw-r--r-- | home/config/desktop-common/wallpapers/nya0.png (renamed from home-config/sway/wallpapers/nya0.png) | bin | 46891955 -> 46891955 bytes | |||
| -rw-r--r--[-rwxr-xr-x] | home/config/sway/config (renamed from home-config/sway/config) | 28 | ||||
| -rw-r--r-- | home/config/sway/config.d/gestures (renamed from home-config/sway/config.d/gestures) | 0 | ||||
| -rw-r--r-- | home/config/sway/config.d/input (renamed from home-config/sway/config.d/input) | 4 | ||||
| -rw-r--r-- | home/config/sway/config.d/keybinds (renamed from home-config/sway/config.d/keybinds) | 23 | ||||
| -rw-r--r-- | home/config/sway/config.d/project (renamed from home-config/sway/config.d/project) | 8 | ||||
| -rw-r--r-- | home/config/sway/config.d/scratch (renamed from home-config/sway/config.d/scratch) | 4 | ||||
| -rw-r--r-- | home/config/sway/config.d/theme (renamed from home-config/sway/config.d/theme) | 11 | ||||
| -rw-r--r-- | home/config/sway/config.d/workspaces (renamed from home-config/sway/config.d/workspaces) | 3 | ||||
| -rwxr-xr-x | home/config/sway/scripts.d/project.sh (renamed from home-config/sway/scripts.d/project.sh) | 17 | ||||
| -rwxr-xr-x | home/config/sway/scripts.d/scratchpads.sh (renamed from home-config/sway/scripts.d/scratchpads.sh) | 0 |
26 files changed, 57 insertions, 171 deletions
diff --git a/home-config/sway/config.d/idle b/home-config/sway/config.d/idle deleted file mode 100644 index fb13083..0000000 --- a/home-config/sway/config.d/idle +++ /dev/null @@ -1,5 +0,0 @@ -# Turn off display after tiemout -exec swayidle -w \ - timeout 300 'swaylock -f -c 14171d' \ - timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ - before-sleep 'swaylock -f -c 14171d' diff --git a/home-config/sway/logout.d/power/img/lock-hover.png b/home-config/sway/logout.d/power/img/lock-hover.png Binary files differdeleted file mode 100644 index 46c51b0..0000000 --- a/home-config/sway/logout.d/power/img/lock-hover.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/lock.png b/home-config/sway/logout.d/power/img/lock.png Binary files differdeleted file mode 100644 index f1ec4a2..0000000 --- a/home-config/sway/logout.d/power/img/lock.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/logout-hover.png b/home-config/sway/logout.d/power/img/logout-hover.png Binary files differdeleted file mode 100644 index b34a150..0000000 --- a/home-config/sway/logout.d/power/img/logout-hover.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/logout.png b/home-config/sway/logout.d/power/img/logout.png Binary files differdeleted file mode 100644 index 59a5aeb..0000000 --- a/home-config/sway/logout.d/power/img/logout.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/power-hover.png b/home-config/sway/logout.d/power/img/power-hover.png Binary files differdeleted file mode 100644 index a65e429..0000000 --- a/home-config/sway/logout.d/power/img/power-hover.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/power.png b/home-config/sway/logout.d/power/img/power.png Binary files differdeleted file mode 100644 index 6aac455..0000000 --- a/home-config/sway/logout.d/power/img/power.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/restart-hover.png b/home-config/sway/logout.d/power/img/restart-hover.png Binary files differdeleted file mode 100644 index 7921398..0000000 --- a/home-config/sway/logout.d/power/img/restart-hover.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/restart.png b/home-config/sway/logout.d/power/img/restart.png Binary files differdeleted file mode 100644 index 5851243..0000000 --- a/home-config/sway/logout.d/power/img/restart.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/sleep-hover.png b/home-config/sway/logout.d/power/img/sleep-hover.png Binary files differdeleted file mode 100644 index 7c9b6b3..0000000 --- a/home-config/sway/logout.d/power/img/sleep-hover.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/img/sleep.png b/home-config/sway/logout.d/power/img/sleep.png Binary files differdeleted file mode 100644 index 164f5fb..0000000 --- a/home-config/sway/logout.d/power/img/sleep.png +++ /dev/null diff --git a/home-config/sway/logout.d/power/layout b/home-config/sway/logout.d/power/layout deleted file mode 100644 index ecd4759..0000000 --- a/home-config/sway/logout.d/power/layout +++ /dev/null @@ -1,30 +0,0 @@ -{ - "label" : "lock", - "action" : "swaylock -f -c 14171d", - "text" : "Lock", - "keybind" : "l" -} -{ - "label" : "logout", - "action" : "loginctl terminate-user $USER", - "text" : "Logout", - "keybind" : "e" -} -{ - "label" : "shutdown", - "action" : "loginctl poweroff", - "text" : "Shutdown", - "keybind" : "s" -} -{ - "label" : "suspend", - "action" : "loginctl suspend", - "text" : "Suspend", - "keybind" : "u" -} -{ - "label" : "reboot", - "action" : "loginctl reboot", - "text" : "Reboot", - "keybind" : "r" -} diff --git a/home-config/sway/logout.d/power/style.css b/home-config/sway/logout.d/power/style.css deleted file mode 100644 index e80dd33..0000000 --- a/home-config/sway/logout.d/power/style.css +++ /dev/null @@ -1,76 +0,0 @@ -nk* { - font-family: "Fira Mono", "Font Awesome 6 Pro", monospace; - font-size: 16px; - font-weight: bold; -} - -window { - background-color: rgba(0, 0, 0, 0); -} - -button { - background-color: #242434; - background-image: none; - color: #89ADF8; - border: 1px solid rgba(0, 0, 0, 0); - margin: 5px; - border-radius: 10px; - background-repeat: no-repeat; - background-position: center; - background-size: 35%; -} - -button:focus, button:active { - background-color: #89B4FA; - color: #242434; - font-weight: 500; - outline-style: none; -} - -#lock { - background-image: image(url("img/lock.png")); -} - -#logout { - background-image: image(url("img/logout.png")); -} - -#suspend { - background-image: image(url("img/sleep.png")); -} - -#hibernate { - background-image: image(url("img/hibernate.png")); -} - -#shutdown { - background-image: image(url("img/power.png")); -} - -#reboot { - background-image: image(url("img/restart.png")); -} - -#lock:focus { - background-image: image(url("img/lock-hover.png")); -} - -#logout:focus { - background-image: image(url("img/logout-hover.png")); -} - -#suspend:focus { - background-image: image(url("img/sleep-hover.png")); -} - -#hibernate:focus { - background-image: image(url("img/hibernate-hover.png")); -} - -#shutdown:focus { - background-image: image(url("img/power-hover.png")); -} - -#reboot:focus { - background-image: image(url("img/restart-hover.png")); -} diff --git a/home-config/sway/scripts.d/auto.sh b/home-config/sway/scripts.d/auto.sh deleted file mode 100755 index 68a28e2..0000000 --- a/home-config/sway/scripts.d/auto.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -/usr/lib/xdg-desktop-portal -r & -/usr/lib/xdg-desktop-portal-wlr -r & - -mako & - -nm-applet --indicator & - -GTK_THEME= waybar & - -autotiling & - -/usr/bin/gnome-keyring-daemon --foreground & - -discord --enable-features=UseOzonePlatform --ozone-platform=wayland & -element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland & -#thunderbird & - diff --git a/home-config/sway/wallpapers/blue.jpg b/home/config/desktop-common/wallpapers/blue.jpg Binary files differindex acd376b..acd376b 100755..100644 --- a/home-config/sway/wallpapers/blue.jpg +++ b/home/config/desktop-common/wallpapers/blue.jpg diff --git a/home-config/sway/wallpapers/nya0.png b/home/config/desktop-common/wallpapers/nya0.png Binary files differindex e9da5d5..e9da5d5 100644 --- a/home-config/sway/wallpapers/nya0.png +++ b/home/config/desktop-common/wallpapers/nya0.png diff --git a/home-config/sway/config b/home/config/sway/config index 497b549..d8526ad 100755..100644 --- a/home-config/sway/config +++ b/home/config/sway/config @@ -1,20 +1,20 @@ -# xdg desktop portal fix -exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway - # Set super key set $mod Mod4 # Set terminal -set $term alacritty +set $term kitty # Set app launcher set $menu wofi --allow-images --show=drun --prompt "Search Program" # Set scale -set $scale 1.5 +set $scale 1.25 # Set background -set $bg ~/.config/sway/wallpapers/blue.jpg +set $bg ~/.config/desktop-common/wallpapers/davekat.png + +# Set lockscreen +set $lock hyprlock # Set Efects set $gaps 10 @@ -22,14 +22,20 @@ set $radius 0 set $shadows on set $shadow_blur 15 set $blur enable -set $blur_radius 4 -set $blur_passes 2 +set $blur_radius 10 +set $blur_passes 3 # Set browser -set $browser firefox +set $browser librewolf -# Autostart apps -exec $HOME/.config/sway/scripts.d/auto.sh +# System configs +include /etc/sway/config.d/* # Local configs include $HOME/.config/sway/config.d/* + +# Nwg +include $HOME/.config/sway/outputs + +# Autostart apps +exec $HOME/.config/sway/scripts.d/auto.sh diff --git a/home-config/sway/config.d/gestures b/home/config/sway/config.d/gestures index 4bdb136..4bdb136 100644 --- a/home-config/sway/config.d/gestures +++ b/home/config/sway/config.d/gestures diff --git a/home-config/sway/config.d/input b/home/config/sway/config.d/input index a02f6d6..9cb7156 100644 --- a/home-config/sway/config.d/input +++ b/home/config/sway/config.d/input @@ -6,6 +6,7 @@ input * xkb_numlock enable # Keyboard layout, change as you wish input * { xkb_layout "us" + xkb_options compose:ralt } # Touchpad input settings @@ -16,5 +17,4 @@ input type:touchpad { } # Screen settings -#exec swaymsg output $screen resolution $resolution scale $scale -output eDP-1 resolution 3072x1920 scale $scale +# output eDP-1 resolution 3072x1920 scale $scale diff --git a/home-config/sway/config.d/keybinds b/home/config/sway/config.d/keybinds index bfc6f56..214be98 100644 --- a/home-config/sway/config.d/keybinds +++ b/home/config/sway/config.d/keybinds @@ -13,13 +13,10 @@ bindsym $mod+d exec $menu bindsym $mod+w exec $browser # Lock screen -bindsym $mod+Shift+l exec $lock +bindsym $mod+l exec $lock # Exit sway -bindsym Ctrl+Alt+Delete exec killall sway - -# Power menu -bindsym $mod+L exec killall wlogout || wlogout --css ~/.config/sway/logout.d/power/style.css -l ~/.config/sway/logout.d/power/layout +bindsym $mod+Shift+l exit # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. @@ -34,12 +31,10 @@ bindsym $mod+F5 reload # Audio keybinds bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym Shift+XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ 10000% +bindsym Shift+XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ 0% bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle -bindsym F3 exec pactl set-sink-volume @DEFAULT_SINK@ +5% -bindsym F2 exec pactl set-sink-volume @DEFAULT_SINK@ -5% -bindsym F1 exec pactl set-sink-mute @DEFAULT_SINK@ toggle -bindsym F4 exec pactl set-source-mute @DEFAULT_SOURCE@ toggle # Brightness keybinds bindsym XF86MonBrightnessDown exec brightnessctl set 5%- @@ -51,6 +46,12 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous # Screenshot -bindsym Print exec grim -g "$(slurp)" - | wl-copy -bindsym Alt+Print exec grim - | wl-copy +bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -t image/png && notify-send -t 3000 "Sway" "Screenshot copied to clipboard" +bindsym Print exec grim - | wl-copy -t iamge/png && notify-send -t 3000 "Sway" "Full screen copied to clipboard" bindsym Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy + +# Michelsoft Binbows +bindsym Ctrl+$mod+Shift+L exec $browser "https://linkedin.com" +bindsym Ctrl+$mod+Shift+S exec $term -e sl +bindsym Ctrl+$mod+Shift+T exec electron28 "https://twitter.com" +bindsym Ctrl+$mod+Shift+M exec electron28 "https://www.tumblr.com" diff --git a/home-config/sway/config.d/project b/home/config/sway/config.d/project index 3cb1049..5f74a43 100644 --- a/home-config/sway/config.d/project +++ b/home/config/sway/config.d/project @@ -1,6 +1,6 @@ ### Project -bindsym $mod+Alt+Left exec ~/.config/sway/scripts.d/project.sh LEFT -bindsym $mod+Alt+Right exec ~/.config/sway/scripts.d/project.sh RIGHT -bindsym $mod+Alt+Up exec ~/.config/sway/scripts.d/project.sh EXTERNAL_ONLY -bindsym $mod+Alt+Down exec ~/.config/sway/scripts.d/project.sh PRIMARY_ONLY +bindsym $mod+Alt+Left exec ~/.config/sway/scripts.d/project.sh LEFT $scale +bindsym $mod+Alt+Right exec ~/.config/sway/scripts.d/project.sh RIGHT $scale +bindsym $mod+Alt+Up exec ~/.config/sway/scripts.d/project.sh EXTERNAL_ONLY $scale +bindsym $mod+Alt+Down exec ~/.config/sway/scripts.d/project.sh PRIMARY_ONLY $scale diff --git a/home-config/sway/config.d/scratch b/home/config/sway/config.d/scratch index 0337319..bdafcf6 100644 --- a/home-config/sway/config.d/scratch +++ b/home/config/sway/config.d/scratch @@ -7,8 +7,12 @@ bindsym $mod+Shift+minus move scratchpad # If there are multiple scratchpad windows, this command cycles through them. bindsym $mod+minus scratchpad show +exec ~/.config/sway/scripts.d/scratchpads.sh + for_window [app_id="scratch_term"] move scratchpad, resize set 960 640 for_window [app_id="scratch_htop"] move scratchpad, resize set 960 640 +for_window [app_id="scratch_calc"] move scratchpad, resize set 960 640 bindsym $mod+y exec ~/.config/sway/scripts.d/scratchpads.sh scratch_term zsh bindsym $mod+h exec ~/.config/sway/scripts.d/scratchpads.sh scratch_htop htop +bindsym $mod+c exec ~/.config/sway/scripts.d/scratchpads.sh scratch_calc matrix diff --git a/home-config/sway/config.d/theme b/home/config/sway/config.d/theme index e8d2822..3d93752 100644 --- a/home-config/sway/config.d/theme +++ b/home/config/sway/config.d/theme @@ -1,8 +1,8 @@ ### Set borders gaps inner $gaps -for_window [class="^.*"] border pixel 2 -default_border pixel 2 -default_floating_border pixel 2 +for_window [class="^.*"] border pixel 0 +default_border pixel 0 +default_floating_border pixel 0 ### Colors @@ -25,8 +25,11 @@ shadow_color #14171dff blur $blur blur_radius $blur_radius blur_passes $blur_passes -layer_effects "waybar" blur enable; shadows enable +layer_effects "waybar" blur disable; shadows disable layer_effects "wofi" blur enable; shadows enable ### Output configuration output * bg $bg fill + +### Bar +bar swaybar_command waybar diff --git a/home-config/sway/config.d/workspaces b/home/config/sway/config.d/workspaces index fe87bc1..5fac86b 100644 --- a/home-config/sway/config.d/workspaces +++ b/home/config/sway/config.d/workspaces @@ -21,7 +21,6 @@ bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 bindsym $mod+9 workspace number 9 -bindsym $mod+0 workspace number 10 # Move focused container to workspace bindsym $mod+Shift+1 move container to workspace number 1 @@ -33,11 +32,11 @@ bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 -bindsym $mod+Shift+0 move container to workspace number 10 # Layout stuff: # Set the new window positioning mode +bindsym $mod+Shift+d layout default bindsym $mod+Shift+b layout splith bindsym $mod+Shift+v layout splitv bindsym $mod+Shift+c layout tabbed diff --git a/home-config/sway/scripts.d/project.sh b/home/config/sway/scripts.d/project.sh index afb8507..84e1a8d 100755 --- a/home-config/sway/scripts.d/project.sh +++ b/home/config/sway/scripts.d/project.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +PID=$$ + get_mode() { swaymsg -t get_outputs -r | jq ".[$1].modes[0]" } @@ -56,24 +58,25 @@ get_id() { i=0 while true; do NAME="$(get_name $i)" - if [ "$NAME" == "$1" ]; then + if [ $(echo "$NAME" | grep "^$1") ]; then echo "$i" - exit 0 + return 0 elif [ "$NAME" == "null" ]; then - exit 1 + return 1 fi ((i=i+1)) done } die() { - notify-send -u critical -t 3000 "Sway" "Failed to get display" + notify-send -u critical -t 3000 "Sway" "$1" + kill $PID } -PRIMARY=$(get_id "eDP-1") -EXTERNAL=$(get_id "DP-1" || get_id "HDMI-1") +PRIMARY=$(get_id "eDP-1" || die "Failed to get primary display") +EXTERNAL=$(get_id "DP" || get_id "HDMI" || die "Failed to get external display") -PRIMARY_SCALE=1.5 +PRIMARY_SCALE=$2 EXTERNAL_SCALE=1 set_monitors() { diff --git a/home-config/sway/scripts.d/scratchpads.sh b/home/config/sway/scripts.d/scratchpads.sh index bb8e361..bb8e361 100755 --- a/home-config/sway/scripts.d/scratchpads.sh +++ b/home/config/sway/scripts.d/scratchpads.sh |