summaryrefslogtreecommitdiff
path: root/home-config/sway
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/sway')
-rwxr-xr-xhome-config/sway/config35
-rw-r--r--home-config/sway/config.d/gestures4
-rw-r--r--home-config/sway/config.d/idle5
-rw-r--r--home-config/sway/config.d/input20
-rw-r--r--home-config/sway/config.d/keybinds56
-rw-r--r--home-config/sway/config.d/project6
-rw-r--r--home-config/sway/config.d/scratch14
-rw-r--r--home-config/sway/config.d/theme32
-rw-r--r--home-config/sway/config.d/workspaces70
-rw-r--r--home-config/sway/logout.d/power/img/lock-hover.pngbin6421 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/lock.pngbin6692 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/logout-hover.pngbin6076 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/logout.pngbin6612 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/power-hover.pngbin6995 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/power.pngbin6996 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/restart-hover.pngbin6846 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/restart.pngbin7355 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/sleep-hover.pngbin6094 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/img/sleep.pngbin6683 -> 0 bytes
-rw-r--r--home-config/sway/logout.d/power/layout30
-rw-r--r--home-config/sway/logout.d/power/style.css76
-rwxr-xr-xhome-config/sway/scripts.d/auto.sh19
-rwxr-xr-xhome-config/sway/scripts.d/project.sh119
-rwxr-xr-xhome-config/sway/scripts.d/scratchpads.sh4
-rwxr-xr-xhome-config/sway/wallpapers/blue.jpgbin1539393 -> 0 bytes
-rw-r--r--home-config/sway/wallpapers/nya0.pngbin46891955 -> 0 bytes
26 files changed, 0 insertions, 490 deletions
diff --git a/home-config/sway/config b/home-config/sway/config
deleted file mode 100755
index 497b549..0000000
--- a/home-config/sway/config
+++ /dev/null
@@ -1,35 +0,0 @@
-# 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 app launcher
-set $menu wofi --allow-images --show=drun --prompt "Search Program"
-
-# Set scale
-set $scale 1.5
-
-# Set background
-set $bg ~/.config/sway/wallpapers/blue.jpg
-
-# Set Efects
-set $gaps 10
-set $radius 0
-set $shadows on
-set $shadow_blur 15
-set $blur enable
-set $blur_radius 4
-set $blur_passes 2
-
-# Set browser
-set $browser firefox
-
-# Autostart apps
-exec $HOME/.config/sway/scripts.d/auto.sh
-
-# Local configs
-include $HOME/.config/sway/config.d/*
diff --git a/home-config/sway/config.d/gestures b/home-config/sway/config.d/gestures
deleted file mode 100644
index 4bdb136..0000000
--- a/home-config/sway/config.d/gestures
+++ /dev/null
@@ -1,4 +0,0 @@
-### Gestures
-
-bindgesture swipe:right workspace prev
-bindgesture swipe:left workspace next
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/config.d/input b/home-config/sway/config.d/input
deleted file mode 100644
index a02f6d6..0000000
--- a/home-config/sway/config.d/input
+++ /dev/null
@@ -1,20 +0,0 @@
-### Input configuration
-
-# Enable numlock on startup
-input * xkb_numlock enable
-
-# Keyboard layout, change as you wish
-input * {
- xkb_layout "us"
-}
-
-# Touchpad input settings
-input type:touchpad {
- tap enabled
- natural_scroll enabled
- middle_emulation enabled
-}
-
-# Screen settings
-#exec swaymsg output $screen resolution $resolution 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
deleted file mode 100644
index bfc6f56..0000000
--- a/home-config/sway/config.d/keybinds
+++ /dev/null
@@ -1,56 +0,0 @@
-### Key bindings
-
-# Start a terminal
-bindsym $mod+Return exec $term
-
-# Kill focused window
-bindsym $mod+Shift+q kill
-
-# Start your launcher
-bindsym $mod+d exec $menu
-
-# Start your browesr
-bindsym $mod+w exec $browser
-
-# Lock screen
-bindsym $mod+Shift+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
-
-# Drag floating windows by holding down $mod and left mouse button.
-# Resize them with right mouse button + $mod.
-# Despite the name, also works for non-floating windows.
-# Change normal to inverse to use left mouse button for resizing and right
-# mouse button for dragging.
-floating_modifier $mod normal
-
-# Reload the configuration file
-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 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%-
-bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
-
-# Player keybinds
-bindsym XF86AudioPlay exec playerctl play-pause
-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 Shift+Print exec slurp -p | grim -g - - | convert - txt:- | tail -n 1 | awk '{print $3}' | wl-copy
diff --git a/home-config/sway/config.d/project b/home-config/sway/config.d/project
deleted file mode 100644
index 3cb1049..0000000
--- a/home-config/sway/config.d/project
+++ /dev/null
@@ -1,6 +0,0 @@
-### 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
diff --git a/home-config/sway/config.d/scratch b/home-config/sway/config.d/scratch
deleted file mode 100644
index 0337319..0000000
--- a/home-config/sway/config.d/scratch
+++ /dev/null
@@ -1,14 +0,0 @@
-### Scratchpad:
-
-# Move the currently focused window to the 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
-
-for_window [app_id="scratch_term"] move scratchpad, resize set 960 640
-for_window [app_id="scratch_htop"] 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
diff --git a/home-config/sway/config.d/theme b/home-config/sway/config.d/theme
deleted file mode 100644
index e8d2822..0000000
--- a/home-config/sway/config.d/theme
+++ /dev/null
@@ -1,32 +0,0 @@
-### Set borders
-gaps inner $gaps
-for_window [class="^.*"] border pixel 2
-default_border pixel 2
-default_floating_border pixel 2
-
-### Colors
-
-# class border backgr. text indicator child_border
-client.background #14171d
-client.focused #4d4754 #14171d #ffffff #4d4754 #4d4754
-client.focused_inactive #4d4754 #14171d #ffffff #14171d #14171d
-client.focused_tab_title #4d4754 #14171d #ffffff
-client.unfocused #14171d #14171d #ffffff #14171d #14171d
-client.urgent #cc5c5c #a63a3a #ffffff #a63a3a #a63a3a
-
-### SwayFX
-
-corner_radius $radius
-smart_corner_radius $radius
-shadows $shadows
-shadows_on_csd $shadows
-shadow_blur_radius $shadow_blur
-shadow_color #14171dff
-blur $blur
-blur_radius $blur_radius
-blur_passes $blur_passes
-layer_effects "waybar" blur enable; shadows enable
-layer_effects "wofi" blur enable; shadows enable
-
-### Output configuration
-output * bg $bg fill
diff --git a/home-config/sway/config.d/workspaces b/home-config/sway/config.d/workspaces
deleted file mode 100644
index fe87bc1..0000000
--- a/home-config/sway/config.d/workspaces
+++ /dev/null
@@ -1,70 +0,0 @@
-
-# Move your focus around
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
-
-# Move the focused window with the same, but add Shift
-bindsym $mod+Shift+Left move left
-bindsym $mod+Shift+Down move down
-bindsym $mod+Shift+Up move up
-bindsym $mod+Shift+Right move right
-
-# Switch to workspace
-bindsym $mod+1 workspace number 1
-bindsym $mod+2 workspace number 2
-bindsym $mod+3 workspace number 3
-bindsym $mod+4 workspace number 4
-bindsym $mod+5 workspace number 5
-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
-bindsym $mod+Shift+2 move container to workspace number 2
-bindsym $mod+Shift+3 move container to workspace number 3
-bindsym $mod+Shift+4 move container to workspace number 4
-bindsym $mod+Shift+5 move container to workspace number 5
-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+b layout splith
-bindsym $mod+Shift+v layout splitv
-bindsym $mod+Shift+c layout tabbed
-
-# Make the current focus fullscreen
-bindsym $mod+f fullscreen
-
-# Toggle the current focus between tiling and floating mode
-bindsym $mod+Shift+space floating toggle
-
-# Swap focus between the tiling area and the floating area
-bindsym $mod+space focus mode_toggle
-
-# Move focus to the parent container
-bindsym $mod+a focus parent
-
-# Resize windows
-mode "resize" {
- # Ditto, with arrow keys
- bindsym Left resize shrink width 10px
- bindsym Down resize grow height 10px
- bindsym Up resize shrink height 10px
- bindsym Right resize grow width 10px
-
- # Return to default mode
- bindsym Return mode "default"
- bindsym Escape mode "default"
-}
-
-bindsym $mod+r mode "resize"
diff --git a/home-config/sway/logout.d/power/img/lock-hover.png b/home-config/sway/logout.d/power/img/lock-hover.png
deleted file mode 100644
index 46c51b0..0000000
--- a/home-config/sway/logout.d/power/img/lock-hover.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/lock.png b/home-config/sway/logout.d/power/img/lock.png
deleted file mode 100644
index f1ec4a2..0000000
--- a/home-config/sway/logout.d/power/img/lock.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/logout-hover.png b/home-config/sway/logout.d/power/img/logout-hover.png
deleted file mode 100644
index b34a150..0000000
--- a/home-config/sway/logout.d/power/img/logout-hover.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/logout.png b/home-config/sway/logout.d/power/img/logout.png
deleted file mode 100644
index 59a5aeb..0000000
--- a/home-config/sway/logout.d/power/img/logout.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/power-hover.png b/home-config/sway/logout.d/power/img/power-hover.png
deleted file mode 100644
index a65e429..0000000
--- a/home-config/sway/logout.d/power/img/power-hover.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/power.png b/home-config/sway/logout.d/power/img/power.png
deleted file mode 100644
index 6aac455..0000000
--- a/home-config/sway/logout.d/power/img/power.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/restart-hover.png b/home-config/sway/logout.d/power/img/restart-hover.png
deleted file mode 100644
index 7921398..0000000
--- a/home-config/sway/logout.d/power/img/restart-hover.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/restart.png b/home-config/sway/logout.d/power/img/restart.png
deleted file mode 100644
index 5851243..0000000
--- a/home-config/sway/logout.d/power/img/restart.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/sleep-hover.png b/home-config/sway/logout.d/power/img/sleep-hover.png
deleted file mode 100644
index 7c9b6b3..0000000
--- a/home-config/sway/logout.d/power/img/sleep-hover.png
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/logout.d/power/img/sleep.png b/home-config/sway/logout.d/power/img/sleep.png
deleted file mode 100644
index 164f5fb..0000000
--- a/home-config/sway/logout.d/power/img/sleep.png
+++ /dev/null
Binary files differ
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/scripts.d/project.sh b/home-config/sway/scripts.d/project.sh
deleted file mode 100755
index afb8507..0000000
--- a/home-config/sway/scripts.d/project.sh
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/usr/bin/env bash
-
-get_mode() {
- swaymsg -t get_outputs -r | jq ".[$1].modes[0]"
-}
-
-get_name() {
- swaymsg -t get_outputs -r | jq -r ".[$1].name"
-}
-
-get_width() {
- get_mode "$1" | jq ".width"
-}
-
-get_height() {
- get_mode "$1" | jq ".width"
-}
-
-get_refresh() {
- get_mode "$1" | jq ".refresh" | rev | cut -c 4- | rev
-}
-
-get_placement() {
- # $1 - monitor placement
- # $2 - monitor index compared
- # $3 - monitor compared scale
- WIDTH="$(jq -n "$(get_width $2)/$3" | awk -F. '{print $1}')"
- case $1 in
- "NONE")
- echo "0 0"
- ;;
- "RIGHT")
- echo "$WIDTH 0"
- ;;
- *)
- echo "0 0"
- ;;
- esac
-}
-
-update() {
- # $1 - monitor index
- # $2 - monitor scale
- # $3 - monitor placement
- # $4 - monitor index compared
- # $5 - monitor compared scale
- swaymsg output "$(get_name $1)" "enable"
- swaymsg output "$(get_name $1)" resolution "$(get_width $1)x$(get_height $1)@$(get_refresh $1)hz" scale $2 position "$(get_placement $3 $4 $5)"
-}
-
-off() {
- swaymsg output "$(get_name $1)" "disable"
-}
-
-get_id() {
- i=0
- while true; do
- NAME="$(get_name $i)"
- if [ "$NAME" == "$1" ]; then
- echo "$i"
- exit 0
- elif [ "$NAME" == "null" ]; then
- exit 1
- fi
- ((i=i+1))
- done
-}
-
-die() {
- notify-send -u critical -t 3000 "Sway" "Failed to get display"
-}
-
-PRIMARY=$(get_id "eDP-1")
-EXTERNAL=$(get_id "DP-1" || get_id "HDMI-1")
-
-PRIMARY_SCALE=1.5
-EXTERNAL_SCALE=1
-
-set_monitors() {
- update $EXTERNAL $EXTERNAL_SCALE $1 $PRIMARY $PRIMARY_SCALE
- update $PRIMARY $PRIMARY_SCALE $2 $EXTERNAL $EXTERNAL_SCALE
-}
-
-set_left() {
- set_monitors "NONE" "RIGHT"
-}
-
-set_right() {
- set_monitors "RIGHT" "NONE"
-}
-
-set_primary_only() {
- set_monitors "NONE" "NONE"
- off $EXTERNAL
-}
-
-set_external_only() {
- set_monitors "NONE" "NONE"
- off $PRIMARY
-}
-
-case $1 in
- "LEFT")
- set_left
- notify-send -t 3000 "Sway" "External display set to left aligned"
- ;;
- "RIGHT")
- set_right
- notify-send -t 3000 "Sway" "External display set to right aligned"
- ;;
- "PRIMARY_ONLY")
- set_primary_only
- notify-send -t 3000 "Sway" "Set to primary display only"
- ;;
- "EXTERNAL_ONLY")
- set_external_only
- notify-send -t 3000 "Sway" "Set to external display only"
- ;;
-esac
diff --git a/home-config/sway/scripts.d/scratchpads.sh b/home-config/sway/scripts.d/scratchpads.sh
deleted file mode 100755
index bb8e361..0000000
--- a/home-config/sway/scripts.d/scratchpads.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-( swaymsg -t get_tree | /bin/grep '"app_id": "'$1'"' ) || ( ( $TERMINAL --class=$1 -e $2 & ) && sleep 0.2 )
-swaymsg "[app_id=\"$1\"]" scratchpad show
diff --git a/home-config/sway/wallpapers/blue.jpg b/home-config/sway/wallpapers/blue.jpg
deleted file mode 100755
index acd376b..0000000
--- a/home-config/sway/wallpapers/blue.jpg
+++ /dev/null
Binary files differ
diff --git a/home-config/sway/wallpapers/nya0.png b/home-config/sway/wallpapers/nya0.png
deleted file mode 100644
index e9da5d5..0000000
--- a/home-config/sway/wallpapers/nya0.png
+++ /dev/null
Binary files differ