From ef0997163eb1dbf207acf276da1376c05d84467f Mon Sep 17 00:00:00 2001 From: "Dr. Amr Osman" Date: Fri, 29 Mar 2019 17:12:18 +0200 Subject: [PATCH] Tweaks --- .config/i3/config | 9 ++++++--- .config/i3blocks/config | 21 +++++++++++---------- .config/mimeapps.list | 1 + .scripts/statusbar/clock | 4 ++-- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a26cdb0e..c520ddbc 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -12,7 +12,10 @@ #new_window normal for_window [class="^.*"] border pixel 3 for_window [class="mpv"] floating enable +for_window [title="^nmtui$"] floating enable for_window [class="^Pavucontrol$"] floating enable +for_window [title="stfloat"] floating enable +for_window [title="htopfloat"] floating enable gaps inner 5 gaps outer 5 @@ -93,7 +96,7 @@ client.background $black bar { #font pango: SFNS Display:style=Regular 10 - font pango:Ubuntu 8 + font pango:Ubuntu 10 colors { background $darkblack statusline $darkwhite @@ -111,7 +114,7 @@ bar { # #---Basic Bindings---# # bindsym $mod+Return exec $term -bindsym $mod+Shift+Return exec --no-startup-id samedir +bindsym $mod+Shift+Return exec $term -T "stfloat" # Custom Modes mode "Leave" { @@ -164,7 +167,7 @@ bindsym $mod+Shift+y exec --no-startup-id i3resize left #bindsym $mod+u exec --no-startup-id ddspawn tmuxdd bindsym $mod+Shift+u exec --no-startup-id i3resize down -bindsym $mod+i exec $term -e htop +bindsym $mod+i exec $term -T "htopfloat" -e htop bindsym $mod+Shift+i exec --no-startup-id i3resize up bindsym $mod+o sticky toggle diff --git a/.config/i3blocks/config b/.config/i3blocks/config index e4109e7d..ddd049d5 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -1,5 +1,5 @@ command=~/.scripts/statusbar/$BLOCK_NAME -separator_block_width=15 +separator_block_width=10 markup=pango #[focused window] @@ -39,9 +39,9 @@ label=📬 interval=180 signal=12 -[memory] -interval=30 -label=🧠 +#[memory] +#interval=30 +#label=🧠 [cpu] interval=15 @@ -55,10 +55,10 @@ signal=10 interval=once signal=16 -[disk] -interval=60 -command=disk / -label=🐧 +#[disk] +#interval=60 +#command=disk / +#label=🐧 #[disk] #interval=60 #command=disk /home 🏠 @@ -88,5 +88,6 @@ interval=10 [mycloud] interval=once signal=17 -[help] -interval=once + +#[help] +#interval=once diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 84bf43bf..d6e530fd 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -8,3 +8,4 @@ image/png=img.desktop; image/jpeg=img.desktop; image/gif=img.desktop; application/rss+xml=rss.desktop +inode/directory=/home/dr3mro/.local/share/applications/ranger.desktop diff --git a/.scripts/statusbar/clock b/.scripts/statusbar/clock index 588c5239..ab170048 100755 --- a/.scripts/statusbar/clock +++ b/.scripts/statusbar/clock @@ -1,7 +1,7 @@ #!/bin/sh -date '+%Y %b %d (%a) %I:%M%p' - +#date '+%Y %b %d (%a) %I:%M%p' +date '+%I:%M%p' case $BLOCK_BUTTON in 1) pgrep -x dunst >/dev/null && notify-send "$(cal --color=always | sed "s/..7m//;s/..27m/<\/span><\/b>/")" && notify-send "$(calcurse -D ~/.config/calcurse -d3)" ;; 2) "$TERMINAL" -e calcurse -D ~/.config/calcurse ;;