set $mod Mod4

set $light_text #e1e1e1
set $dark_text #111111
set $light_bg #f1f1f1
set $dark_bg #333333
set $shading #4d4d4d
set $teal #00a7ab
set $red #ab0300
set $green #53ab00

set $ws1  "  "
set $ws2  "  "
set $ws3  "  "
set $ws4  "  "
set $ws5  "  "
set $ws6  "  "
set $ws7  " "
set $ws8  " "
set $ws9  " "
set $ws10 " "

font pango:Hack 8


floating_modifier $mod

bindsym $mod+Shift+q kill

bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+d exec rofi -show run 

bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+odiaeresis focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+odiaeresis move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

bindsym $mod+h split h
bindsym $mod+v split v

bindsym $mod+f fullscreen

bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split

bindsym $mod+space focus mode_toggle
bindsym $mod+Shift+space floating toggle

bindsym $mod+a focus parent
#bindsym $mod+d focus child

bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
#bindsym $mod+7 workspace $ws7
#bindsym $mod+8 workspace $ws8
#bindsym $mod+9 workspace $ws9
#bindsym $mod+0 workspace $ws10
#bindsym $mod+Tab workspace back_and_forth

workspace_auto_back_and_forth yes

bindsym $mod+Control+Shift+Left move window to workspace prev
bindsym $mod+Control+Shift+Right move window to workspace next

bindsym $mod+Control+Shift+Prior move container to output left
bindsym $mod+Control+Shift+Next move container to output right

bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
#bindsym $mod+Shift+7 move container to workspace $ws7
#bindsym $mod+Shift+8 move container to workspace $ws8
#bindsym $mod+Shift+9 move container to workspace $ws9
#bindsym $mod+Shift+0 move container to workspace $ws10

assign [class="terminator"] $ws1
assign [class="Firefox"] $ws2
assign [class="chromium"] $ws2
assign [class="xchat"] $ws3
assign [class="hexchat"] $ws3
assign [Title="irssi"] $ws3
assign [Title="weechat"] $ws3
assign [class="Thunderbird"] $ws4
assign [class="spotify"] $ws5
assign [class="Thunar"] $ws6
assign [Title="ranger"] $ws6


bindsym $mod+b exec firefox
bindsym $mod+c exec terminator -T weechat -x weechat
bindsym $mod+m exec thunderbird
bindsym $mod+Shift+m exec spotify
bindsym $mod+Shift+f exec terminator -T ranger -x ranger
bindsym $mod+Control+l exec sh ~/.config/i3/i3lock.sh




# colors                BORDER      BACKGROUND 	TEXT        INDICATOR
client.focused          $teal	    $teal	$dark_text  $light_text
client.focused_inactive $light_bg   $light_bg  	$dark_text  $light_text
client.unfocused        $light_bg   $light_bg  	$dark_text  $red
client.urgent           $red	    $red       	$light_text $red

exec --no-startup-id yabar

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    font pango:Hack, FontAwesome 10
    status_command    i3status
    position          top
    workspace_buttons yes
    strip_workspace_numbers yes
    tray_output none
    tray_padding 0
    
    colors {
        background $dark_bg
        statusline $light_text
	separator  $dark_bg
        
        # Colors go 	   <border>      <background>   <text>   
        focused_workspace  $dark_bg  	 $dark_bg   	$teal
        active_workspace   $dark_bg  	 $dark_bg   	$light_text
        inactive_workspace $dark_bg  	 $dark_bg   	$light_text
        urgent_workspace   $light_text   $red
    }
}


for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [instance="float"] floating enable

bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"

mode "resize" {
        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 odiaeresis resize grow width 10 px or 10 ppt

        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

        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound

# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness


bindsym $mod+shift+minus move scratchpad
bindsym $mod+minus scratchpad show

exec_always feh --bg-scale /usr/share/archstrike-i3-config/wallpapers/archstrike_wallpaper.jpg
exec_always compton -b
