From bcdafe12e04f66e4d7bf5424cf559b3d52bb4a11 Mon Sep 17 00:00:00 2001 From: gaitas13 <91051922+gaitas13@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:26:59 +0200 Subject: [PATCH] updated hyprland and sway settings --- .config/hypr/UserConfigs/Monitors.conf | 5 +- .config/hypr/UserConfigs/UserSettings.conf | 26 +- .config/hypr/hyprlock-1080p.conf | 153 +++++++++ .config/hypr/hyprlock-4k.conf | 153 +++++++++ .config/hypr/hyprlock.conf | 1 + .config/rofi/.current_wallpaper | 1 - .config/rofi/config-clipboard.rasi | 3 +- .config/rofi/config-compact.rasi | 3 +- .config/rofi/config-long.rasi | 3 +- .config/rofi/config-rofi-Beats.rasi | 4 +- .config/rofi/config-wallpaper.rasi | 3 +- .config/rofi/config-waybar-layout.rasi | 3 +- .config/rofi/config-waybar-style.rasi | 2 +- .config/rofi/config-zsh-theme.rasi | 3 +- .config/rofi/config.rasi | 2 +- .config/rofi/pywal-color/pywal-theme.rasi | 1 - .config/sway/config | 362 +++++++++++++++++++++ .config/wlogout/layout | 36 ++ .config/wlogout/style.css | 50 +++ .local/share/rofi/themes/themelink.rasi | 1 + 20 files changed, 788 insertions(+), 27 deletions(-) create mode 100644 .config/hypr/hyprlock-1080p.conf create mode 100644 .config/hypr/hyprlock-4k.conf create mode 120000 .config/hypr/hyprlock.conf delete mode 120000 .config/rofi/.current_wallpaper delete mode 120000 .config/rofi/pywal-color/pywal-theme.rasi create mode 100644 .config/sway/config create mode 100644 .config/wlogout/layout create mode 100644 .config/wlogout/style.css create mode 120000 .local/share/rofi/themes/themelink.rasi diff --git a/.config/hypr/UserConfigs/Monitors.conf b/.config/hypr/UserConfigs/Monitors.conf index 2a19409..a63f0c0 100644 --- a/.config/hypr/UserConfigs/Monitors.conf +++ b/.config/hypr/UserConfigs/Monitors.conf @@ -14,8 +14,8 @@ monitor=,preferred,auto,1.25 # See here: https://github.com/hyprwm/Hyprland/issues/4090 #monitor = eDP-1, preferred, auto, 1 -monitor = eDP-1, 1920x1080@120, 0x0, 1 #own screen -#monitor = DP-3, 1920x1080@240, auto, 1 +monitor = eDP-1, 1920x1080@120, 0x0, 1.25 #own screen +#monitor = DP-3, 1920x1080@240, auto, 1 #monitor = DP-1, preferred, auto, 1 #monitor = HDMI-A-1, preferred,auto,1 @@ -45,4 +45,3 @@ monitor = eDP-1, 1920x1080@120, 0x0, 1 #own screen #monitor=eDP-1,transform,0 #monitor=eDP-1,addreserved,10,10,10,49 #workspace=eDP-1,1 - diff --git a/.config/hypr/UserConfigs/UserSettings.conf b/.config/hypr/UserConfigs/UserSettings.conf index 14c1839..a78d341 100644 --- a/.config/hypr/UserConfigs/UserSettings.conf +++ b/.config/hypr/UserConfigs/UserSettings.conf @@ -9,21 +9,21 @@ # blurls = waybar # blurls = rofi -dwindle { - pseudotile = yes - preserve_split = yes - special_scale_factor = 0.8 -} +#dwindle { +# pseudotile = yes +# preserve_split = yes +# special_scale_factor = 0.8 +#} -master { - new_is_master=1 - new_on_top=1 - mfact = 0.5 -} +#master { +# new_is_master=1 +# new_on_top=1 +# mfact = 0.5 +#} general { - sensitivity=1.00 - apply_sens_to_raw=1 +# sensitivity=1.00 +# apply_sens_to_raw=1 gaps_in = 4 gaps_out = 8 border_size = 2 @@ -132,7 +132,7 @@ misc { mouse_move_enables_dpms = true #vrr = 0 enable_swallow = true - no_direct_scanout = true #for fullscreen games +# no_direct_scanout = true #for fullscreen games focus_on_activate = false swallow_regex = ^(kitty)$ #disable_autoreload = true diff --git a/.config/hypr/hyprlock-1080p.conf b/.config/hypr/hyprlock-1080p.conf new file mode 100644 index 0000000..28b94f2 --- /dev/null +++ b/.config/hypr/hyprlock-1080p.conf @@ -0,0 +1,153 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# Hyprlock config for =< 1080p monitor resolutions +# Original config submitted by https://github.com/SherLock707 + +# Sourcing colors generated by wallust +source = $HOME/.config/hypr/wallust/wallust-hyprland.conf +$Scripts = $HOME/.config/hypr/scripts + +general { + grace = 1 +} + +background { + monitor = + # NOTE: use only 1 path + #path = screenshot # screenshot of your desktop + path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_modified # NOTE only png supported for now + #path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current # current wallpaper + + #color = $color7 + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_size = 5 + blur_passes = 1 # 0 disables blurring + noise = 0.0117 + contrast = 1.3000 # Vibrant!!! + brightness = 0.8000 + vibrancy = 0.2100 + vibrancy_darkness = 0.0 +} + +input-field { + monitor = + size = 250, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = $color5 + inner_color = $color0 + font_color = $color12 + fade_on_empty = true + placeholder_text = Password... # Text rendered in the input box when it's empty. + hide_input = false + + position = 0, 80 + halign = center + valign = bottom +} + +# Date +label { + monitor = + text = cmd[update:18000000] echo " "$(date +'%A, %-d %B %Y')" " + color = $color12 + font_size = 34 + font_family = JetBrains Mono Nerd Font 10 + position = 0, -80 + halign = center + valign = top +} + +# Hour-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%H")" +# text = cmd[update:1000] echo "$(date +"%I")" #AM/PM + color = rgba(255, 185, 0, .8) + font_size = 150 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -200 + halign = center + valign = top +} + +# Minute-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%M")" + color = rgba(15, 10, 222, .8) + font_size = 150 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -450 + halign = center + valign = top +} + +# Seconds-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%S")" +# text = cmd[update:1000] echo "$(date +"%S %p")" #AM/PM + color = $color7 + font_size = 20 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -450 + halign = center + valign = top +} + +# User +label { + monitor = + text =  $USER + color = $color10 + font_size = 18 + font_family = Inter Display Medium + + position = 0, 20 + halign = center + valign = bottom +} + +# uptime +label { + monitor = + text = cmd[update:60000] echo " "$(uptime -p || $Scripts/UptimeNixOS.sh)" " + color = $color10 + font_size = 24 + font_family = JetBrains Mono Nerd Font 10 + position = 0, 0 + halign = right + valign = bottom +} + +# weather edit the scripts for locations +# weather scripts are located in ~/.config/hypr/UserScripts Weather.sh and/or Weather.py +# see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock +label { + monitor = + text = cmd[update:3600000] [ -f ~/.cache/.weather_cache ] && cat ~/.cache/.weather_cache + color = $color10 + font_size = 24 + font_family = JetBrains Mono Nerd Font 10 + position = 50, 0 + halign = left + valign = bottom +} + +# Put a picture of choice here. Default is the current wallpaper +image { + monitor = + path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current + size = 150 + rounding = -1 + border_size = 2 + border_color = $color11 + rotate = 0 + reload_time = -1 + position = 0, 180 + halign = center + valign = bottom +} diff --git a/.config/hypr/hyprlock-4k.conf b/.config/hypr/hyprlock-4k.conf new file mode 100644 index 0000000..39dc95f --- /dev/null +++ b/.config/hypr/hyprlock-4k.conf @@ -0,0 +1,153 @@ +# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # +# Hyprlock config for => 2k monitor resolutions +# Original config submitted by https://github.com/SherLock707 + +# Sourcing colors generated by wallust +source = $HOME/.config/hypr/wallust/wallust-hyprland.conf +$Scripts = $HOME/.config/hypr/scripts + +general { + grace = 1 +} + +background { + monitor = + # NOTE: use only 1 path + #path = screenshot # screenshot of your desktop + path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_modified # NOTE only png supported for now + #path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current # current wallpaper + + #color = $color7 + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_size = 5 + blur_passes = 1 # 0 disables blurring + noise = 0.0117 + contrast = 1.3000 # Vibrant!!! + brightness = 0.8000 + vibrancy = 0.2100 + vibrancy_darkness = 0.0 +} + +input-field { + monitor = + size = 250, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = $color5 + inner_color = $color0 + font_color = $color12 + fade_on_empty = true + placeholder_text = Password... # Text rendered in the input box when it's empty. + hide_input = false + + position = 0, 200 + halign = center + valign = bottom +} + +# Date +label { + monitor = + text = cmd[update:18000000] echo " "$(date +'%A, %-d %B %Y')" " + color = $color12 + font_size = 34 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -100 + halign = center + valign = top +} + +# Hour-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%H")" +# text = cmd[update:1000] echo "$(date +"%I")" #AM/PM + color = rgba(255, 185, 0, .8) + font_size = 200 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -200 + halign = center + valign = top +} + +# Minute-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%M")" + color = rgba(15, 10, 222, .8) + font_size = 200 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -500 + halign = center + valign = top +} + +# Seconds-Time +label { + monitor = + text = cmd[update:1000] echo "$(date +"%S")" +# text = cmd[update:1000] echo "$(date +"%S %p")" #AM/PM + color = $color7 + font_size = 40 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, -500 + halign = center + valign = top +} + +# User +label { + monitor = + text =  $USER + color = $color10 + font_size = 18 + font_family = Inter Display Medium + + position = 0, 100 + halign = center + valign = bottom +} + +# uptime +label { + monitor = + text = cmd[update:60000] echo " "$(uptime -p || $Scripts/UptimeNixOS.sh)" " + color = $color12 + font_size = 24 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 0, 0 + halign = right + valign = bottom +} + +# weather edit the scripts for locations +# weather scripts are located in ~/.config/hypr/UserScripts Weather.sh and/or Weather.py +# see https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS#%EF%B8%8F-weather-app-related-for-waybar-and-hyprlock +label { + monitor = + text = cmd[update:3600000] [ -f ~/.cache/.weather_cache ] && cat ~/.cache/.weather_cache + color = $color12 + font_size = 24 + font_family = JetBrains Mono Nerd Font Mono ExtraBold + position = 50, 0 + halign = left + valign = bottom +} + +# Put a picture of choice here. Default is the current wallpaper +image { + monitor = + path = $HOME/.config/hypr/wallpaper_effects/.wallpaper_current + size = 230 + rounding = -1 + border_size = 2 + border_color = $color11 + rotate = 0 + reload_time = -1 + position = 0, 300 + halign = center + valign = bottom +} \ No newline at end of file diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf new file mode 120000 index 0000000..37d9d1c --- /dev/null +++ b/.config/hypr/hyprlock.conf @@ -0,0 +1 @@ +hyprlock-1080p.conf \ No newline at end of file diff --git a/.config/rofi/.current_wallpaper b/.config/rofi/.current_wallpaper deleted file mode 120000 index e575d15..0000000 --- a/.config/rofi/.current_wallpaper +++ /dev/null @@ -1 +0,0 @@ -/home/ja/Pictures/wallpapers/CuteCat.png \ No newline at end of file diff --git a/.config/rofi/config-clipboard.rasi b/.config/rofi/config-clipboard.rasi index d0c9549..5a58714 100644 --- a/.config/rofi/config-clipboard.rasi +++ b/.config/rofi/config-clipboard.rasi @@ -20,7 +20,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-compact.rasi b/.config/rofi/config-compact.rasi index 2d68a6d..7736377 100644 --- a/.config/rofi/config-compact.rasi +++ b/.config/rofi/config-compact.rasi @@ -20,7 +20,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-long.rasi b/.config/rofi/config-long.rasi index 9813d7e..3b6bef9 100644 --- a/.config/rofi/config-long.rasi +++ b/.config/rofi/config-long.rasi @@ -20,7 +20,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-rofi-Beats.rasi b/.config/rofi/config-rofi-Beats.rasi index e59ace1..7ff57fd 100644 --- a/.config/rofi/config-rofi-Beats.rasi +++ b/.config/rofi/config-rofi-Beats.rasi @@ -20,7 +20,9 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-wallpaper.rasi b/.config/rofi/config-wallpaper.rasi index 3df1f67..e2c8367 100644 --- a/.config/rofi/config-wallpaper.rasi +++ b/.config/rofi/config-wallpaper.rasi @@ -20,7 +20,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-waybar-layout.rasi b/.config/rofi/config-waybar-layout.rasi index 18f7b8f..8eabe9b 100644 --- a/.config/rofi/config-waybar-layout.rasi +++ b/.config/rofi/config-waybar-layout.rasi @@ -20,7 +20,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config-waybar-style.rasi b/.config/rofi/config-waybar-style.rasi index b48ef8c..3d2a116 100644 --- a/.config/rofi/config-waybar-style.rasi +++ b/.config/rofi/config-waybar-style.rasi @@ -20,7 +20,7 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" /* ---- Window ---- */ window { diff --git a/.config/rofi/config-zsh-theme.rasi b/.config/rofi/config-zsh-theme.rasi index c6aff12..c3aedc5 100644 --- a/.config/rofi/config-zsh-theme.rasi +++ b/.config/rofi/config-zsh-theme.rasi @@ -21,7 +21,8 @@ configuration { } /* ---- Load pywal colors (custom wal template) ---- */ -@import "~/.config/rofi/pywal-color/pywal-theme.rasi" +@theme "themelink" + /* ---- Window ---- */ window { diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi index c3db9fc..11e6031 100644 --- a/.config/rofi/config.rasi +++ b/.config/rofi/config.rasi @@ -22,7 +22,7 @@ configuration { /* ---- Load pywal colors (custom wal template) ---- */ // @import "~/.config/rofi/pywal-color/pywal-theme.rasi" -@theme "catppuccin-macchiato-custom" +@theme "themelink" /* ---- Window ---- */ window { diff --git a/.config/rofi/pywal-color/pywal-theme.rasi b/.config/rofi/pywal-color/pywal-theme.rasi deleted file mode 120000 index 47559d5..0000000 --- a/.config/rofi/pywal-color/pywal-theme.rasi +++ /dev/null @@ -1 +0,0 @@ -/home/dana/.cache/wal/colors-rofi-dark.rasi \ No newline at end of file diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..8c57caf --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,362 @@ +# Read `man 5 sway` for a complete reference. + +### Variables + +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +#set $background ~/Pictures/wallpaper/arch.jpg + +# Your preferred terminal emulator +set $term kitty + +# 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 wofi --show run +#set $menu mounch -p +#bindsym $mod+d exec + +# Start your launcher +bindsym $mod+d exec $menu|xargs swaymsg exec -- + +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l + +# Workspaces +set $ws1 "1 " +set $ws2 "2 " +set $ws3 "3 " +set $ws4 "4 " +set $ws5 "5 " +set $ws6 "6 " +set $ws7 "7 " +set $ws8 "8 " +set $ws9 "9 " +set $ws10 "10" + +set $bg #000000 +set $br #1F51FF +set $brbug #FF0000 +set $textColor #cbccc6 + +# class border backgr. text indicator child_border +client.focused $br $br $textColor $brbug $br + +#output configurations +# You can get the names of your outputs by running: swaymsg -t get_outputs + + +#xdg-desktop-portal-wlr +#exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway + +output eDP-1 scale 1.25 +#output eDP-1 mode 2560x1440@165.003Hz position 0,0 adaptive_sync on +#output DP-3 mode 2560x1440 position 0,0 adaptive_sync on +#output HDMI-A-1 res 2560x1440 position 0,0 + +#wallpaper +#output * bg $background fill + +#way-displays +#exec way-displays > /tmp/way-displays.${XDG_VTNR}.${USER}.log 2>&1 + +#windows borders + +gaps inner 10 +gaps outer 8 +#smart_gaps on +default_border pixel 2 +default_floating_border normal +hide_edge_borders smart +#smart_borders on +focus_follows_mouse no +floating_modifier $mod normal +font CascadiaCodePLSemiBoldItalic 10 +# +#font +#font pango: CascadiaCodePLSemiBoldItalic 11 + +#polkit +exec_always /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 + +##Idle configuration +# +# Example configuration: +# +# exec swayidle -w \ +# timeout 300 'swaylock -f -c 000000' \ +# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ +# before-sleep 'swaylock -f -c 000000' +# +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +input * { + xkb_layout "us" +} +# _ _________ ______ ___ _ _ ____ ___ _ _ ____ ____ +# | |/ / ____\ \ / / __ )_ _| \ | | _ \_ _| \ | |/ ___/ ___| +# | ' /| _| \ V /| _ \| || \| | | | | || \| | | _\___ \ +# | . \| |___ | | | |_) | || |\ | |_| | || |\ | |_| |___) | +# |_|\_\_____| |_| |____/___|_| \_|____/___|_| \_|\____|____/ +# +# +# Basics: +# +# Start a terminal +bindsym $mod+Return exec $term + +# Kill focused window +bindsym $mod+Shift+q kill + +# 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. + +# Reload the configuration file +bindsym $mod+Shift+c reload + +# Exit sway (logs you out of your Wayland session) +bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' + +# Moving around: + +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# +# Or use $mod+[up|down|left|right] +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 +# +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right +# +# Workspaces: +# +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 +# +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + + +# Layout stuff: +# +#You can "split" the current object of your focus with +#$mod+b or $mod+v, for horizontal and vertical splits +# respectively. +#bindsym $mod+b splith +#bindsym $mod+v splitv + +# Switch the current container between different layout styles +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# 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 + +# enable Alt+Tab Functionality +bindsym $mod+Tab workspace next +bindsym $mod+Shift+Tab workspace prev + +# jump to last used workspace +bindsym $mod+grave workspace back_and_forth + +# +# Scratchpad: +# +# Sway has a "scratchpad", which is a bag of holding for windows. +# You can send windows there and get them back later. + +# 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 + +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2% +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86Search exec $menu + +#bindsym XF86MonBrightnessUp exec brightnessctl s 200+ +#bindsym XF86MonBrightnessDown exect brightnessctl s 200- + +#screenshot with slurp +# Take a screenshot with all output and save it into screenshots +bindsym Print exec grim -t jpeg ~/Pictures/Sway-Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg + +# Take a Screenshot with the region select +bindsym $mod+Print exec grim -t jpeg -g "$(slurp)" ~/Pictures/Sway-Screenshots/$(date +%Y-%m-%d_%H-%m-%s).jpg + +# Resizing containers: +# +mode "resize" { +# left will shrink the containers width +# right will grow the containers width +# up will shrink the containers height +# down will grow the containers height +bindsym $left resize shrink width 10px +bindsym $down resize grow height 10px +bindsym $up resize shrink height 10px +bindsym $right resize grow width 10px + +# 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" +} + +# _ ____ ____ _ ___ ____ _ _____ ___ ___ _ _ ____ +# / \ | _ \| _ \| | |_ _/ ___| / \|_ _|_ _/ _ \| \ | / ___| +# / _ \ | |_) | |_) | | | | | / _ \ | | | | | | | \| \___ \ +# / ___ \| __/| __/| |___ | | |___ / ___ \| | | | |_| | |\ |___) | +# /_/ \_\_| |_| |_____|___\____/_/ \_\_| |___\___/|_| \_|____/ +# + +# Default settings for some applications +for_window [class="vlc"] floating enable +for_window [class="vlc"] move absolute center + +#for_window [class="MuPDF"] floating enable +#for_window [app_id="pavucontrol"] floating enable +for_window [app_id="blueman-manager"] floating enable + +for_window [class = "kitty"] floating enable + +for_window [title="Picture-in-Picture"] { + sticky enable + move position 78ppt 65ppt +} + +for_window [class="sway-img"] { + floating enable + move absolute center + resize set 1200 800 +} + +#waybar +bar { + swaybar_command waybar + strip_workspace_numbers yes +} + + +assign [app_id="firefox"] → $ws2 +assign [class="firefox"] → $ws2 + +assign [app_id=thunar] 3 +for_window [app_id=thunar] focus +assign [app_id="Microsoft-edge"] → $ws2 +#assign [app_id="microsoft-edge-stable"] → $ws2 +assign [class="thunar"] → $ws3 +assign [app_id="obs"] → $ws4 +assign [class="Steam"] → $ws5 +#assign [app_id="Steam"] → $ws5 +assign [app_id="lutris"] → $ws5 +assign [app_id="virt-manager"] → $ws6 +assign [app_id="vlc"] → $ws7 +assign [app_id="audacious"] → $ws9 +assign [app_id="easyeffects"] → $ws9 +assign [app_id="pavucontrol-qt"] 9 + +# _ _ _ _____ ___ ____ _____ _ ____ _____ +# / \ | | | |_ _/ _ \/ ___|_ _|/ \ | _ \_ _| +# / _ \| | | | | || | | \___ \ | | / _ \ | |_) || | +# / ___ \ |_| | | || |_| |___) || |/ ___ \| _ < | | +# /_/ \_\___/ |_| \___/|____/ |_/_/ \_\_| \_\|_| +# + +#mako +exec_always mako + +#easyeffects +exec easyeffects --gapplication-service -l my_own2 +#exec easyeffects -r +#exec easyeffects -l my_own2 + +#autotiling +exec_always autotiling + +#pavucontrol-qt +exec pavucontrol-qt + +#GTK+ apps long time to load fix +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + +include /etc/sway/config.d/* diff --git a/.config/wlogout/layout b/.config/wlogout/layout new file mode 100644 index 0000000..7013ee9 --- /dev/null +++ b/.config/wlogout/layout @@ -0,0 +1,36 @@ +{ + "label" : "lock", + "action" : "loginctl lock-session", + "text" : "Lock", + "keybind" : "l" +} +{ + "label" : "hibernate", + "action" : "systemctl hibernate", + "text" : "Hibernate", + "keybind" : "h" +} +{ + "label" : "logout", + "action" : "loginctl terminate-user $USER", + "text" : "Logout", + "keybind" : "e" +} +{ + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", + "keybind" : "s" +} +{ + "label" : "suspend", + "action" : "systemctl suspend", + "text" : "Suspend", + "keybind" : "u" +} +{ + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", + "keybind" : "r" +} diff --git a/.config/wlogout/style.css b/.config/wlogout/style.css new file mode 100644 index 0000000..9a5b99a --- /dev/null +++ b/.config/wlogout/style.css @@ -0,0 +1,50 @@ +* { + background-image: none; + box-shadow: none; +} + +window { + background-color: rgba(12, 12, 12, 0.9); +} + +button { + border-radius: 0; + border-color: black; + text-decoration-color: #FFFFFF; + color: #FFFFFF; + background-color: #1E1E1E; + border-style: solid; + border-width: 1px; + background-repeat: no-repeat; + background-position: center; + background-size: 25%; +} + +button:focus, button:active, button:hover { + background-color: #3700B3; + outline-style: none; +} + +#lock { + background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); +} + +#logout { + background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); +} + +#suspend { + background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); +} + +#hibernate { + background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png")); +} + +#shutdown { + background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); +} + +#reboot { + background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); +} diff --git a/.local/share/rofi/themes/themelink.rasi b/.local/share/rofi/themes/themelink.rasi new file mode 120000 index 0000000..71eeced --- /dev/null +++ b/.local/share/rofi/themes/themelink.rasi @@ -0,0 +1 @@ +catppuccin-macchiato-custom.rasi \ No newline at end of file