aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 14:54:32 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 14:54:32 +0530
commite25a21788a82c8e66c8b191f851162f69a2056ff (patch)
treec8eb5d66eb208aa898aabbbe8018e9bfc41d8032 /i3
parent855324577e2266a9cd03fb9662aa82645080a1c5 (diff)
screenshots & i3lock customization & README update
Diffstat (limited to 'i3')
-rw-r--r--i3/config22
1 files changed, 16 insertions, 6 deletions
diff --git a/i3/config b/i3/config
index 7a158fa..04701dc 100644
--- a/i3/config
+++ b/i3/config
@@ -14,10 +14,23 @@ floating_modifier $mod
tiling_drag modifier titlebar
bindsym $mod+t exec kitty
+bindsym Control+Shift+Escape exec kitty -e btop --force-utf
bindsym $mod+q kill
-
-bindsym $mod+r exec --no-startup-id rofi -show drun
-bindsym $mod+Shift+r exec --no-startup-id rofi -show window
+bindsym $mod+l exec i3lock --color=282828 --ring-color=83a598 --inside-color=282828 --line-color=282828 --separator-color=282828 --keyhl-color=fabd2f --bshl-color=fb4934 --verif-color=b8bb26 --wrong-color=fb4934 --time-color=ebdbb2 --date-color=a89984 --layout-color=d3869b --clock
+bindsym $mod+p exec xwd
+
+set $shots $HOME/Pictures/Screenshots
+bindsym Print exec --no-startup-id \
+ mkdir -p "$shots" && \
+ scrot "$shots/%Y-%m-%d_%H-%M-%S.png"
+bindsym Shift+Print exec --no-startup-id \
+ mkdir -p "$shots" && \
+ scrot -s "$shots/%Y-%m-%d_%H-%M-%S.png"
+bindsym $mod+Print exec --no-startup-id \
+ scrot -s -e 'xclip -selection clipboard -t image/png -i "$f" && rm "$f"'
+
+bindsym $mod+d exec --no-startup-id rofi -show drun
+bindsym $mod+Shift+d exec --no-startup-id rofi -show window
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@@ -79,11 +92,8 @@ 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
-# reload the configuration file
bindsym $mod+Shift+c reload
-# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
-# exit i3 (logs you out of your X session)
bindsym $mod+Shift+l exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
mode "resize" {