summaryrefslogtreecommitdiff
path: root/i3/config
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-26 04:08:53 -0300
commit8dc8f2d52338fd87e7763995e6732f5a295300e8 (patch)
tree56ea8a124b9a81e42251ffa1be92ad6475d7bef3 /i3/config
huh
Diffstat (limited to 'i3/config')
-rw-r--r--i3/config221
1 files changed, 221 insertions, 0 deletions
diff --git a/i3/config b/i3/config
new file mode 100644
index 0000000..8c33961
--- /dev/null
+++ b/i3/config
@@ -0,0 +1,221 @@
+# Keyboard layout
+exec --no-startup-id setxkbmap -layout es
+
+# Font
+font pango:Iosevka 10
+
+# Master key
+set $mod Mod4
+
+# Mouse drag floating window
+floating_modifier $mod
+
+# Popup fullscreen
+
+popup_during_fullscreen smart
+
+# Start a terminal
+bindsym $mod+Return exec st
+
+# Kill focused window
+bindsym $mod+Shift+q kill
+
+# Start dmenu / rofi
+#bindsym $mod+d exec "dmenu_run -nf '#b4b4b9' -nb '#020221' -sb '#ff3600' -sf '#ffffff' -fn 'Hack-11'"
+bindsym $mod+d exec rofi -no-lazy-grab -show drun -modi drun -icon-theme "Papirus" -show-icons -font "Iosevka Nerd Font 12"
+
+# Change focus window
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
+
+# move focus window
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Right move right
+
+# Vim move focus window
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l focus right
+
+# Vim focus window
+bindsym $mod+Shift+h move left
+bindsym $mod+Shift+j move down
+bindsym $mod+Shift+k move up
+bindsym $mod+Shift+l move right
+
+# Split window
+bindsym $mod+ñ split h
+bindsym $mod+v split v
+
+# Fullscreen toggle
+bindsym $mod+f fullscreen toggle
+
+# Change container layout (stacked, tabbed, toggle split)
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+
+# Toggle tiling / floating
+bindsym $mod+Shift+space floating toggle
+
+# Focus the parent container
+bindsym $mod+a focus parent
+
+# Focus the child container
+#bindsym $mod+d focus child
+
+# Workspace variables
+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"
+
+# Switch to workspace
+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 $ws9
+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+e 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'"
+
+# Resize window (you can also use the mouse for that)
+mode "resize" {
+
+ 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
+ bindsym Right resize grow width 10 px or 10 ppt
+
+ # back to normal: Enter or Escape or $mod+r
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+}
+
+bindsym $mod+r mode "resize"
+
+# Polybar
+exec_always --no-startup-id $HOME/.config/polybar/launch.sh
+
+# Shortcuts
+bindsym $mod+Shift+o exec libreoffice
+bindsym $mod+t exec dino
+bindsym $mod+n exec initnews.sh
+bindsym $mod+Shift+g exec krita
+bindsym $mod+Shift+Ctrl+l exec rofibooks.sh
+bindsym $mod+g exec rofigames.sh
+bindsym $mod+y exec invidious_search.sh
+bindsym $mod+F8 exec newsboatreload.sh
+#bindsym $mod+F9 exec screenzug.sh
+bindsym $mod+F9 exec st -n ncmpzug -e ncmpcpp-ueberzug
+bindsym $mod+F10 exec firefox
+bindsym $mod+F11 exec discord
+bindsym $mod+F12 exec steam
+
+# Take screenshots
+bindsym $mod+Insert exec screenshots.sh
+
+# Record video
+bindsym $mod+Shift+Ctrl+r exec screenrec.sh
+bindsym $mod+Shift+Ctrl+s exec killffmpeg.sh
+
+# Disable window titlebars
+
+for_window [class=".*"] border pixel 2
+gaps inner 5
+gaps outer 5
+
+# HDMI
+workspace "10" output HDMI-1
+
+# Wallpaper
+exec --no-startup-id exec bash $HOME/.config/feh/.fehbg
+
+# Graphic compositor
+exec dbus-launch picom --config ~/.config/picom.conf
+
+# Set colors from Xresources
+# Change 'color7' and 'color2' to whatever colors you want i3 to use
+# from the generated scheme.
+# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
+# it fails to get colors from Xresources.
+set_from_resource $fg i3wm.color15 #fff
+set_from_resource $bg i3wm.color14 #fff
+
+# class border backgr. text indicator child_border
+client.focused $fg $bg $fg $fg $fg
+client.focused_inactive $bg $bg $fg $bg $bg
+client.unfocused $bg $bg $fg $bg $bg
+client.urgent $bg $bg $fg $bg $bg
+client.placeholder $bg $bg $fg $bg $bg
+
+client.background $bg
+
+# Assigning and manipulating windows
+#for_window [instance="newsboatfs"] move container to workspace $ws10
+for_window [instance="mpvfloat"] floating enable, resize set 960 540, move container position center
+for_window [instance="ncmpzug"] floating enable, resize set 585 184, move position 683 572
+
+# Start on refresh
+exec_always dunst
+
+# Start newsboat
+exec newsboat
+
+# Mpc controls
+bindsym $mod+Shift+F2 exec mpc volume -5
+bindsym $mod+Shift+F3 exec mpc volume +5
+bindsym $mod+F5 exec mpc prev
+bindsym $mod+Shift+F5 exec mpc seekthrough -00:00:02
+bindsym $mod+F6 exec mpc toggle
+bindsym $mod+Shift+F6 exec mpc stop
+bindsym $mod+F7 exec mpc next
+bindsym $mod+Shift+F7 exec mpc seekthrough +00:00:02
+bindsym $mod+Shift+F8 exec mpc update
+
+# Applets
+exec --no-startup-id nm-applet
+exec --no-startup-id pasystray
+
+# Audio
+exec --no-startup-id pipewire
+exec --no-startup-id pipewire-pulse
+exec --no-startup-id wireplumber
+
+# Xresources
+exec xrdb -merge ~/.config/X11/xresources