aboutsummaryrefslogtreecommitdiff
path: root/dot_config/i3/config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/i3/config')
-rw-r--r--dot_config/i3/config65
1 files changed, 27 insertions, 38 deletions
diff --git a/dot_config/i3/config b/dot_config/i3/config
index 1caf83b..aa76ecf 100644
--- a/dot_config/i3/config
+++ b/dot_config/i3/config
@@ -40,8 +40,9 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
-# start a terminal
+# Two ways to start a terminal
bindsym $mod+Return exec $TERMINAL
+bindsym Ctrl+Shift+Escape exec $TERMINAL
# kill focused window
bindsym $mod+Shift+q kill
@@ -141,7 +142,7 @@ 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
+bindsym $mod+Shift+t 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)
@@ -160,7 +161,7 @@ mode "resize" {
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
- # same bindings, but for the arrow keys
+ # same bindings, but for the arrow keys
# bindsym Left resize shrink width 10 px or 10 ppt
# bindsym Down resize grow height 10 px or 10 ppt
# bindsym Up resize shrink height 10 px or 10 ppt
@@ -193,15 +194,10 @@ bar {
status_command i3status
}
-# Firefox - (W)eb browser
-bindsym $mod+Shift+W exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/firefox.png "Opening" "<span color='#ff6600' font='26px'><b>firefox</b></span>" ; exec firefox
# Power off - X
bindsym $mod+Shift+X exec "i3-nagbar -t error -f fixed -m 'You pressed the shutting shortcut. Do you really eant to shut you computer?' -B 'Yes, shut it.' 'sudo /bin/poweroff'"
# Reboot - BackSpace
bindsym $mod+Shift+BackSpace exec "i3-nagbar -t error -f fixed -m 'You pressed the restarting shortcut. Do you really eant to restart you computer?' -B 'Yes, restart it.' 'sudo /bin/reboot'"
-# (T)eams
-# (P)assword manager
-#bindsym $mod+Shift+P exec passmenu
# Set the bg wallpaper
exec --no-startup-id feh --bg-scale /home/mas/Pictures/retrowave-pyramid.png
@@ -224,7 +220,7 @@ bindsym $mod+Shift+S exec "i3-nagbar -t warning -f fixed -m 'You pressed the sus
bindsym $mod+Shift+Delete exec "i3-nagbar -t warning -f fixed -m 'You pressed the hibernating shortcut. Do you really want to put your computer to sleep?' -B 'Yes, do it.' 'sudo /bin/ZZZ'"
# What happens when we hit the power button
-bindsym XF86PowerOff exec xcowsay "$(fortune -s)"
+bindsym XF86PowerOff exec notify-send -t 5000 "$(date +%H:%M:%S && cat /sys/class/power_supply/BAT0/capacity && pactl get-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo | cut -d' ' -f5-6)"
######GAPS######
set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
@@ -351,9 +347,14 @@ mode "$mode_gaps_left" {
gaps inner 10
######GAPS######
+# Remove the header of windows
+default_border pixel 2
-# (D)iscord
-bindsym $mod+Shift+D exec notify-send -t 5000 -i /home/mas/Pictures/icons/discord.png "Opening" "<span color='#738ADB' font='26px'><b>Discord</b></span>" ; exec Discord
+# Urgency i3 opt-out option
+bindsym $mod+Shift+F10 exec i3-msg exit
+
+# Change i3-wm workspace names based on content
+exec_always --no-startup-id /usr/bin/i3wsr
# Media Player Controls
#bindsym ISO_Level3_Shift+F7
@@ -363,45 +364,33 @@ bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
# Screenshot with scrot
-#bindsym Print exec notify-send -t 5000 -i /home/mas/Pictures/icons/screenshot.png "Launching" "<span color='cyan' font='26px'><b>scrot</b></span>" ; exec scrot --silent --exec 'mv $f ~/Pictures/screenshots && sxiv ~/Pictures/screenshots/$f'
-
-# (C)hromium
-bindsym $mod+Shift+C exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/chromium.png "Opening" "<span color='#5D7FD2' font='26px'><b>chromium</b></span>" ; exec chromium
+bindsym Print exec notify-send -t 5000 -i /home/mas/Pictures/icons/screenshot.png "Launching" "<span color='cyan' font='26px'><b>scrot</b></span>" ; exec scrot --silent --exec 'mv $f ~/Pictures/screenshots && sxiv ~/Pictures/screenshots/$f'
# Mount/Umount on the drives - F10/F11
bindsym $mod+F10 exec dmenumount
bindsym $mod+F11 exec dmenuumount
-# (V)irtualBox
-bindsym $mod+Shift+V exec notify-send -t 5000 -i /usr/share/icons/hicolor/128x128/mimetypes/virtualbox.png "Launching" "<span color='blue' font='26px'><b>VirtualBox</b></span>" ; exec VirtualBox
-
-# Thunderbird - (M)ail
-bindsym $mod+Shift+M exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/thunderbird.png "Launching" "<span color='blue' font='26px'><b>Thunderbird</b></span>" ; exec thunderbird
-
# US and FR keyboard mapping - (U)S/(F)R
bindsym $mod+Shift+U exec setxkbmap us && exec notify-send -t 5000 "US xkbmap"
bindsym $mod+Shift+F exec setxkbmap fr && exec notify-send -t 5000 "FR xkbmap"
-# Network manager - (I)nternet
-bindsym $mod+Shift+I exec networkmanager_dmenu
-
-# Krita - F1
-bindsym $mod+Shift+F1 exec notify-send -t 5000 -i /usr/share/icons/hicolor/1024x1024/apps/krita.png "Lauching" "<span color='pink' font='26px'><b>Krita</b></span>" && exec krita
+#(L)ock
+bindsym $mod+Ctrl+l exec i3lock --show-failed-attempts --image="$HOME/Pictures/superhot_wpp.png"
-# Remove the header of windows
-default_border pixel 2
+# (N)etworkManager
+bindsym $mod+Shift+N exec notify-send -t 5000 "Lauching" "<span color='pink' font='26px'><b>NetworkManager</b></span>" && exec networkmanager_dmenu
-# Urgency i3 opt-out option
-bindsym $mod+Shift+F10 exec i3-msg exit
+# Firefox - (W)eb browser
+bindsym $mod+Shift+W exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/firefox.png "Opening" "<span color='#ff6600' font='26px'><b>firefox</b></span>" ; exec firefox
-# Change i3-wm workspace names based on content
-exec_always --no-startup-id /usr/bin/i3wsr
+# (C)hromium
+bindsym $mod+Shift+C exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/chromium.png "Opening" "<span color='#5D7FD2' font='26px'><b>chromium</b></span>" ; exec chromium
-#(L)ock
-bindsym $mod+Ctrl+l exec i3lock --show-failed-attempts --image="$HOME/Pictures/superhot_wpp.png"
+# (D)iscord
+bindsym $mod+Shift+D exec notify-send -t 5000 -i /home/mas/Pictures/icons/vesktop.png "Opening" "<span color='#738ADB' font='26px'><b>Vesktop</b></span>" ; exec Vesktop
-# Chatterino - (T)witch
-bindsym $mod+Shift+T exec notify-send -t 5000 -i /home/mas/Pictures/icons/chatterino2.png "Lauching" "<span color='pink' font='26px'><b>Chatterino</b></span>" && exec chatterino
+# (V)irtualBox
+bindsym $mod+Shift+V exec notify-send -t 5000 -i /usr/share/icons/hicolor/128x128/mimetypes/virtualbox.png "Launching" "<span color='blue' font='26px'><b>VirtualBox</b></span>" ; exec VirtualBox
-# (N)etworkManager
-bindsym $mod+Shift+N exec notify-send -t 5000 "Lauching" "<span color='pink' font='26px'><b>NetworkManager</b></span>" && exec networkmanager_dmenu
+# Thunderbird - (M)ail
+bindsym $mod+Shift+M exec notify-send -t 5000 -i /usr/share/icons/hicolor/256x256/apps/thunderbird.png "Launching" "<span color='blue' font='26px'><b>Thunderbird</b></span>" ; exec thunderbird