Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file has been auto-generated by i3-config-wizard(1).
- # It will not be overwritten, so edit it as you like.
- #
- # Should you change your keyboard layout some time, delete
- # this file and re-run i3-config-wizard(1).
- #
- # i3 config file (v4)
- #
- # Please see https://i3wm.org/docs/userguide.html for a complete reference!
- set $mod Mod4
- # Font for window titles. Will also be used by the bar unless a different font
- # is used in the bar {} block below.
- #font xft:Iosevka Nerd Font 12
- # font pango:monospace 9
- # This font is widely installed, provides lots of unicode glyphs, right-to-left
- # text rendering and scalability on retina/hidpi displays (thanks to pango).
- font pango:DejaVu Sans Mono 11
- # Start XDG autostart .desktop files using dex. See also
- # https://wiki.archlinux.org/index.php/XDG_Autostart
- exec --no-startup-id dex --autostart --environment i3
- # The combination of xss-lock, nm-applet and pactl is a popular choice, so
- # they are included here as an example. Modify as you see fit.
- # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
- # screen before suspend. Use loginctl lock-session to lock your screen.
- exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
- # Use pactl to adjust volume in PulseAudio.
- # bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
- # bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
- # Use custom script to change volume
- bindsym XF86AudioRaiseVolume exec --no-startup-id $HOME/.local/bin/changevolume +5%
- bindsym XF86AudioLowerVolume exec --no-startup-id $HOME/.local/bin/changevolume -5%
- #bindsym XF86AudioRaiseVolume+Shift exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK +5%
- #bindsym XF86AudioLowerVolume+Shift exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK -5%
- bindsym XF86AudioMute exec --no-startup-id $HOME/.local/bin/changevolume mute
- # Dont think the button works...
- # bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && pkill -SIGRTMIN+1 i3blocks
- # Use Mouse+$mod to drag floating windows to their wanted position
- floating_modifier $mod
- # start a terminal
- #bindsym $mod+Return exec i3-sensible-terminal
- bindsym $mod+Return exec --no-startup-id alacritty
- # Kill focused window
- bindsym $mod+Shift+q kill
- # Rofi Appp Launcher
- # bindcode $mod+40 exec --no-startup-id "$HOME/.config/rofi/launcher/launcher.sh"
- # Change focus
- bindsym $mod+j focus left
- bindsym $mod+k focus down
- bindsym $mod+semicolon focus right
- # Alternatively, you can use the cursor keys:
- bindsym $mod+Left focus left
- bindsym $mod+Tab focus right
- bindsym $mod+Down focus down
- bindsym $mod+Up focus up
- bindsym $mod+Right focus right
- # Move focused window
- bindsym $mod+Shift+j move left
- bindsym $mod+Shift+k move down
- bindsym $mod+Shift+l move up
- bindsym $mod+Shift+semicolon move right
- # Alternatively, you can use the cursor 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
- # Split in horizontal orientation
- bindsym $mod+h split h
- # Split in vertical orientation
- bindsym $mod+v split v
- # Enter fullscreen mode for the focused container
- 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
- # Change focus between tiling / floating windows
- bindsym $mod+space focus mode_toggle
- # focus the parent container
- bindsym $mod+a focus parent
- # 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"
- # 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 $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+e exec "i3-msg exit"
- # Resize window (you can also use the mouse for that)
- mode "resize" {
- # These bindings trigger as soon as you enter the resize mode
- # Pressing left will shrink the window’s width.
- # Pressing right will grow the window’s width.
- # Pressing up will shrink the window’s height.
- # Pressing down will grow the window’s height.
- bindsym j resize shrink width 10 px or 10 ppt
- bindsym k resize grow height 10 px or 10 ppt
- bindsym l resize shrink height 10 px or 10 ppt
- bindsym semicolon resize grow width 10 px or 10 ppt
- # 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
- 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"
- smart_borders on
- # Window colors, read from Xresources
- # set_from_resource $fg foreground
- # set_from_resource $bg background
- # set_from_resource $fbg color8
- # client.focused $fbg $fbg $fg $fbg
- # client.focused_inactive $bg $bg $bg $bg
- # client.unfocused $bg $bg $fg $bg
- # client.urgent $bg $bg $bg $bg
- # MANUAL COLOR SPECIFICATION
- set $bgcolor #282828
- set $ibgcolor #202020
- set $textcolor #ffffff
- set $itextcolor #969696
- set $ubgcolor #ff0000
- # border background text indicator
- client.focused $bgcolor $bgcolor $textcolor $bgcolor
- client.unfocused $ibgcolor $ibgcolor $itextcolor $ibgcolor
- client.focused_inactive $ibgcolor $ibgcolor $itextcolor $ibgcolor
- client.urgent $ubgcolor $ubgcolor $textcolor $ubgcolor
- # Keyboard layout
- exec_always --no-startup-id setxkbmap dk
- # Display wallpaper
- # exec_always --no-startup-id feh --bg-fill /home/amonk/Media/Pictures/Wallpapers/burning_tree.jpg
- # exec_always --no-startup-id feh --bg-scale /usr/share/backgrounds/autumn_forrest.jpg
- # Custom keybindings
- # lock screen
- bindsym $mod+x exec --no-startup-id i3lock
- # start filemanager
- bindsym $mod+q exec --no-startup-id thunar
- # screen brightness
- bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -ctrl amdgpu_bl0 -inc 5
- bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -ctrl amdgpu_bl0 -dec 5
- # keyboard brightness
- bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -inc 33.3333
- bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -ctrl asus::kbd_backlight -dec 33.3333
- bindsym $mod+p exec --no-startup-id $HOME/.local/bin/extendmonitor
- bindsym $mod+c exec --no-startup-id flameshot gui
- bindsym $mod+o exec --no-startup-id flameshot screen
- # Assign Programns to workspaces
- #for_window [class="firefox"] move to workspace $ws2
- #for_window [class="Spotify"] move to workspace $ws3
- # scratchpad
- # Make the currently focused window a scratchpad
- bindsym $mod+Shift+minus move scratchpad
- # Show the first scratchpad window
- bindsym $mod+minus scratchpad show
- # Show the sup-mail scratchpad window, if any.
- # bindsym mod4+s [title="^Sup ::"] scratchpad show
- # Set the border size for windows within search reequirement
- for_window [class=".*"] border pixel 1.8
- # gaps
- gaps inner 10
- gaps outer 4
- # Applications that floats on default
- for_window [class="File-roller" window_type="normal"] floating enable resize set 640 480
- for_window [class="Qalculate-gtk"] floating enable
- for_window [class="Tint2"] floating enable
- # polkit agent, runs as a service
- # exec_always /usr/lib/xfce-polkit/xfce-polkit
- # Polybar launch script,
- # Reason for sleep: https://www.reddit.com/r/Polybar/comments/w19jql/i3_black_spots_on_system_tray_sometimes_occur/
- # exec_always --no-startup-id $HOME/.config/polybar/launch.sh
- # All systray applets are started by xdg autostart (dex):
- # Audio systray icon
- # exec --no-startup-id volctl
- # NetworkManager systray icon
- # exec --no-startup-id nm-applet
- # Bluetooth systray icon
- # exec --no-startup-id blueman-applet
- # Removable media/Auto mounter
- # exec --no-startup-id udiskie -n -t
- # Clipboard manager
- # exec --no-startup-id parcellite
- # Volume change notifier (using custom scripts)
- # exec --no-startup-id pa-notify -t 2
- # Screenshot tool sys tray icon
- # exec --no-startup-id flameshot
- # Main bar
- exec_always --no-startup-id eww open --toggle panel
- exec --no-startup-id picom --experimental-backends
- # Albert launcher
- # exec --no-startup-id albert
- # Wallpaper setter
- exec --no-startup-id nitrogen --restore
- exec xrdb -merge ~/.Xresources
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement