dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b5ec571b2be409255f3e7d9733a3edb73d06f62d
parent 82629e61f92a588685a0642b06e68730a40810c6
Author: MichaelDim02 <31562759+MichaelDim02@users.noreply.github.com>
Date:   Sat,  3 Jul 2021 20:52:00 +0300

Add files via upload
Diffstat:
Mconfig | 139+++++++++++++++++++++++++++++++++++++++++++++++++------------------------------
Ai3blocks.conf | 75+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 161 insertions(+), 53 deletions(-)

diff --git a/config b/config @@ -1,4 +1,4 @@ -# This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # +# 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). # @@ -30,9 +30,10 @@ exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +set $refresh_i3blocks_audio pkill -SIGRTMIN+5 i3blocks +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && pkill -SIGRTMIN+10 i3blocks +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && pkill -SIGRTMIN+10 i3blocks +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -SIGRTMIN+10 i3blocks bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status @@ -40,18 +41,23 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU floating_modifier $mod # start a terminal -bindsym $mod+Return exec konsole +bindsym $mod+Return exec st + +# start browsers +bindsym $mod+b exec brave +bindsym $mod+p exec "zathura /home/michael/Documents/uni2/programma.pdf" +bindsym $mod+Shift+s exec signal-desktop-beta +bindsym $mod+c exec "st -e neomutt" +bindsym $mod+n exec "st -e newsboat" +bindsym $mod+Ctrl+a exec "st -e bc -l" +bindsym $mod+y exec myyt # kill focused window bindsym $mod+Shift+q kill bindsym $mod+q kill -bindsym $mod+c+1 move container to workspace 1 -bindsym $mod+c+2 move container to workspace 2 -bindsym $mod+c+3 move container to workspace 3 -bindsym $mod+c+4 move container to workspace 4 -bindsym $mod+c+5 move container to workspace 5 -bindsym $mod+c+6 move container to workspace 6 +bindsym Ctrl+$mod+Left exec ~/.i3MoveNext.sh -1 +bindsym Ctrl+$mod+Right exec ~/.i3MoveNext.sh 1 # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run @@ -61,10 +67,10 @@ bindsym $mod+d exec dmenu_run # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right +bindsym $mod+semicolon focus left # alternatively, you can use the cursor keys: bindsym $mod+Left focus left @@ -73,10 +79,10 @@ 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+colon move right +bindsym $mod+Ctrl+j move down +bindsym $mod+Ctrl+k move up +bindsym $mod+Ctrl+l move right +bindsym $mod+h move left # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left @@ -85,7 +91,7 @@ bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # split in horizontal orientation -bindsym $mod+h split h +bindsym $mod+Ctrl+h split h # split in vertical orientation bindsym $mod+v split v @@ -102,7 +108,7 @@ bindsym $mod+e layout toggle split bindsym $mod+t floating toggle # change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle +bindsym $jod+space focus mode_toggle # focus the parent container bindsym $mod+a focus parent @@ -112,16 +118,16 @@ 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" +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 @@ -136,23 +142,23 @@ 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 +bindsym $mod+Ctrl+1 move container to workspace number $ws1 +bindsym $mod+Ctrl+2 move container to workspace number $ws2 +bindsym $mod+Ctrl+3 move container to workspace number $ws3 +bindsym $mod+Ctrl+4 move container to workspace number $ws4 +bindsym $mod+Ctrl+5 move container to workspace number $ws5 +bindsym $mod+Ctrl+6 move container to workspace number $ws6 +bindsym $mod+Ctrl+7 move container to workspace number $ws7 +bindsym $mod+Ctrl+8 move container to workspace number $ws8 +bindsym $mod+Ctrl+9 move container to workspace number $ws9 +bindsym $mod+Ctrl+0 move container to workspace number $ws10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+Ctrl+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart +bindsym $mod+Ctrl+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'" +bindsym $mod+Ctrl+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" { @@ -184,27 +190,54 @@ mode "resize" { # https://github.com/Airblader/i3/tree/gaps-next # delete or uncomment the following lines if you do not have it or do not # want it -for_window [class="^.*"] border pixel 0 -gaps inner 20 -gaps outer 20 +for_window [class="^.*"] border pixel 2 +gaps inner 10 +gaps outer 10 #smart_gaps on smart_borders on -exec --no-startup-id feh --bg-fill ~/Pictures/among_the_sierra_mountains_nevada.jpg #~/Pictures/light1.jpg +exec --no-startup-id wal -i Pictures/mountain.jpg +#exec --no-startup-id wal -i Pictures/wolf/kampinos_wilki_zwierzeta_2000pxperfect2.jpg +#feh --bg-fill ~/Pictures/wolf/kampinos_wilki_zwierzeta_2000px2.jpg #wolves_highcon.jpg #~/Pictures/light1.jpg #winter-ebony exec --no-startup-id compton + +exec --no-startup-id dunst -exec -t 2m -L 20 -n --no-startup-id i3-battery-popup +exec --no-startup-id i3-battery-popup -n -D -L 20 -l 10 bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status + strip_workspace_numbers yes + status_command i3blocks + position top + + colors { + focused_workspace #CECECE #CECECE #000000 + } } -## BRIGHTNESS ## Make sure the main user is in the SUDOers file and doesn't need a password -# also make sure that the program "light" is install (sudo pacman -S light) bindsym XF86MonBrightnessUp exec --no-startup-id sudo light -s sysfs/backlight/amdgpu_bl0 -A 10 -bindsym XF86MonBrightnessDown exec --no-startup-id sudo light -s sysfs/backlight/amdgpu_bl0 -U 5 +bindsym XF86MonBrightnessDown exec --no-startup-id sudo light -s sysfs/backlight/amdgpu_bl0 -U 10 + +bindsym $mod+m mode "move" focus floating +mode "move" { + bindsym $mod+Tab focus right + + bindsym Left move left + bindsym Down move down + bindsym Up move up + bindsym Right move right + + bindsym h move left + bindsym j move down + bindsym k move up + bindsym l move right + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} diff --git a/i3blocks.conf b/i3blocks.conf @@ -0,0 +1,75 @@ +# i3blocks configuration file +# +# The i3blocks man page describes the usage of the binary, +# and its website describes the configuration: +# +# https://vivien.github.io/i3blocks + + +# Global properties +separator=false +separator_block_width=25 + +#[documentation] +#full_text=Documentation +#website=https://vivien.github.io/i3blocks +#command=xdg-open "$website" +#color=#f12711 + +#[greetings] +#color=#f5af19 +#command=echo "Hello, $USER!" +#interval=once + +[AZ] +color=#ff7aa2 +label=AZ +command=date -d '10 hour ago' "+%H:%M" +interval=5 + +[BTC] +command=curl -s rate.sx | awk 'FNR == 13 {print $4 " " $8}' | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'; [[ -z "${BLOCK_BUTTON}" ]] || st -e sh -c "curl -s rate.sx; $SHELL;" +interval=200 + +[mpd] +color=#178787 +command=mpc | awk 'FNR ==1' | awk -F\/ '{print $NF}' | cut -f 1 -d '.' | colrm 25 ; /home/michael/.scripts/music.sh +#[[ -z "${BLOCK_BUTTON}" ]] || st -e ncmpcpp +interval=1 +signal=15 + +[volume] +command=~/.scripts/volume +label=V +interval=once +signal=10 + +[memory] +color=#bdbfff +label=M +command=free -m | awk 'FNR == 2 {print $3}'; [[ -z "${BLOCK_BUTTON}" ]] || st -e htop +interval=2 + +[cpu_usage] +label=CPU +interval=10 +min_width=CPU 100.00% + +[storage] +label=S +command=df -h / | awk 'FNR == 2 {print $4}' +interval=10 + +[network] +color=#828aa1 +command=nmcli | awk 'FNR == 1 {print $4}' +interval=10 + +[battery] +command=/home/michael/.scripts/battery +interval=1 + +[time] +color=#ffadc5 +command=date '+%d-%m-%Y %H:%M '; [[ -z "${BLOCK_BUTTON}" ]] || st -e sh -c "cal;$SHELL" +interval=1