From e6d883fc8d017e49fec02c0dc1a3e7a6e6b9a06e Mon Sep 17 00:00:00 2001 From: a Date: Fri, 13 Dec 2024 10:40:42 +0100 Subject: [PATCH] a --- config/i3/config | 119 +++++++++++++++++-------------------------- config/sxhkd/sxhkdrc | 46 +++++++++-------- 2 files changed, 72 insertions(+), 93 deletions(-) diff --git a/config/i3/config b/config/i3/config index 8f9d86e..3efbebe 100644 --- a/config/i3/config +++ b/config/i3/config @@ -1,47 +1,73 @@ -# some variables set $mod Mod4 set $border0 "#606060" set $border1 "#ffffff" set $speed 75 +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" +exec_always --no-startup-id feh --bg-fill $(cat ~/.config/i3/wallpaper) +exec_always --no-startup-id ~/.config/polybar/launch.sh +exec_always --no-startup-id setxkbmap pl +exec --no-startup-id xcompmgr +exec --no-startup-id sleep 1s; i3-msg restart + +client.unfocused $border0 $border0 $border0 $border0 $border0 +client.focused $border1 $border1 $border1 $border1 $border1 +client.focused_inactive $border0 $border0 $border0 $border0 $border0 +client.urgent $border0 $border0 $border0 $border0 $border0 +for_window [class=".*"] border pixel 1 +smart_borders on +gaps inner 5 +gaps outer 6 + +floating_modifier $mod font pango:MonoCraft NerdFont 10 -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod +assign [class="firefox"] 1 +assign [class="KeePassXC"] 10 +assign [class="steam"] 2 +assign [class="obs"] 7 +assign [class="SimpleScreenRecorder"] 7 +assign [class="TelegramDesktop"] 5 +assign [class="Gajim"] 5 +assign [class="weechat"] 5 +assign [class="Signal"] 5 +assign [class="transmission"] 6 +#assign [class="radeon-profile"] 5 + +bindsym $mod+Shift+r restart -# kill focused window bindsym $mod+q kill - -# alternatively, you can use the cursor keys: bindsym $mod+j focus left bindsym $mod+k focus down bindsym $mod+l focus up bindsym $mod+semicolon focus right - -# alternatively, you can use the cursor keys: bindsym $mod+ctrl+j move left $speed px bindsym $mod+ctrl+k move down $speed px bindsym $mod+ctrl+l move up $speed px bindsym $mod+ctrl+semicolon move right $speed px +bindsym $mod+Shift+ctrl+semicolon resize shrink width 6 px or 6 ppt +bindsym $mod+Shift+ctrl+l resize grow height 6 px or 6 ppt +bindsym $mod+Shift+ctrl+k resize shrink height 6 px or 6 ppt +bindsym $mod+Shift+ctrl+j resize grow width 6 px or 6 ppt - -# mod+h split in horizontal orientation / mod+v split in vertical orientation bindsym $mod+h split h bindsym $mod+v split v - -# enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle - +bindsym $mod+x floating toggle bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+x floating toggle - -# switch to workspace bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 @@ -53,15 +79,6 @@ bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart - -# window resizing -bindsym $mod+Shift+ctrl+semicolon resize shrink width 3 px or 3 ppt -bindsym $mod+Shift+ctrl+l resize grow height 3 px or 3 ppt -bindsym $mod+Shift+ctrl+k resize shrink height 3 px or 3 ppt -bindsym $mod+Shift+ctrl+j resize grow width 3 px or 3 ppt - 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 @@ -73,42 +90,20 @@ 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 + + # workspace 1 output HDMI-1 # workspace 2 output HDMI-1 # workspace 3 output HDMI-1 # workspace 4 output HDMI-1 # workspace 5 output HDMI-1 - # workspace 6 output DP-3 # workspace 7 output DP-3 # workspace 8 output DP-3 # workspace 9 output DP-3 # workspace 10 output DP-3 -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -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" - - -#border -client.unfocused $border0 $border0 $border0 $border0 $border0 -client.focused $border1 $border1 $border1 $border1 $border1 -client.focused_inactive $border0 $border0 $border0 $border0 $border0 -client.urgent $border0 $border0 $border0 $border0 $border0 - -for_window [class=".*"] border pixel 1 -smart_borders on - #bar { # position top # status_command ~/.config/i3/status.sh @@ -122,25 +117,3 @@ smart_borders on # urgent_workspace #000000 #000000 #ffffff # } #} - -# AutoStart -exec_always --no-startup-id feh --bg-fill $(cat ~/.config/i3/wallpaper) -exec_always --no-startup-id ~/.config/polybar/launch.sh -exec_always --no-startup-id setxkbmap pl -exec --no-startup-id xcompmgr -exec --no-startup-id sleep 1s; i3-msg restart - -# windows rules -assign [class="firefox"] 1 -assign [class="KeePassXC"] 10 -assign [class="steam"] 2 -assign [class="obs"] 7 -assign [class="TelegramDesktop"] 5 -assign [class="Gajim"] 5 -assign [class="weechat"] 5 -assign [class="transmission"] 6 -#assign [class="radeon-profile"] 5 - -#gaps (i3-gaps) -gaps inner 5 -gaps outer 6 diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index d6fe1dc..0cd1bfd 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -1,38 +1,44 @@ super + Return st +super + shift + Return + xterm +super + ctrl + Return + cool-retro-term super + d - dmenu_run -l 25 + dmenu_run -vi -l 15 -p ">" super + b firefox - +super + i + bookmarks +super + shift + l + i3lock -u -e -i /home/user/images/itsucks.png +super + r + simplescreenrecorder super + o st -e lfimg super + shift + o pcmanfm super + a st -e pulsemixer - -super + p - flameshot gui -p ~/images/screenshots -super + shift + p - flameshot full -p ~/images/screenshots -super + ctrl + p - flameshot gui -c -p ~/images/screenshots -super + shift + ctrl + p - flameshot full -c -p ~/images/screenshots - -super + i - bookmarks -super + shift + l - i3lock -u -e -i /home/user/images/itsucks.png +super + t + st -e btop super + {comma,period} pactl set-sink-volume @DEFAULT_SINK@ {-5%, +5%} super + m pactl set-sink-mute @DEFAULT_SINK@ toggle +super + p + flameshot gui -c -p ~/images/screenshots +super + shift + p + flameshot full -c -p ~/images/screenshots +super + ctrl + p + flameshot gui -p ~/images/screenshots +super + shift + ctrl + p + flameshot full -p ~/images/screenshots -#super + {1, 2, 3, 4, 5, 6} -# wmctrl -s {0, 1, 2, 3, 4, 5} -#super + q -# xdo kill + +#super + {1, 2, 3, 4, 5, 6, 7, 8, 9, 0} +# wmctrl -s {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} +#super + shift + {1, 2, 3, 4, 5, 6, 7, 8, 9, 0} +# wmctrl -i -r $(xdotool getactivewindow) -t {0,1,2,3,4,5,6,7,8,9}