From 98778e2cf3fb9e1b842911c5bd1a0a5a5e924b45 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Fri, 17 Jan 2020 20:35:49 +0100 Subject: Minor improvements --- config | 55 ++++++++++++++++++++++++++++++++++++++++--------------- i3status.conf | 58 ++++++++++++++++++++++++++++++++++++---------------------- 2 files changed, 76 insertions(+), 37 deletions(-) diff --git a/config b/config index bc8dd3f..db89941 100644 --- a/config +++ b/config @@ -9,25 +9,33 @@ exec xrdb ~/.Xresources ; i3-msg reload # fake-outputs 3840x1080+0+0 # we basically want to configure our font with ~/.config/fontconfig/* -font pango:FuraCode Nerd Font Mono Retina 9 +# font pango:FuraCode Nerd Font Mono Retina 9 # font pango:Code New Roman Nerd Font 9 +font pango:FuraCode Nerd Font Mono Medium 11 -hide_edge_borders both +# hide_edge_borders both set $mod Mod4 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod +# screenshots +bindsym --release Print exec scrot -s + # start a terminal # bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec --no-startup-id xfce4-appfinder +# bindsym $mod+Return exec --no-startup-id xfce4-appfinder +bindsym $mod+Return exec --no-startup-id dmenu_run -nb '#e0e0e0' -nf '#000' -sb '#ffffff' -sf '#4271ae' bindsym Mod1+F2 exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff -bindsym $mod+t exec --no-startup-id xfce4-terminal +# bindsym $mod+t exec --no-startup-id dbus-launch terminology +# bindsym $mod+t exec --no-startup-id dbus-launch gnome-terminal +bindsym $mod+t exec --no-startup-id dbus-launch xfce4-terminal +# bindsym $mod+t exec --no-startup-id dbus-launch sakura # bindsym $mod+t exec termite # bindsym $mod+t exec urxvt -bindsym $mod+e exec --no-startup-id thunar -bindsym $mod+l exec --no-startup-id ~/.local/bin/i3lock -f -i "/home/max/.local/share/backgrounds/IMG_5656 - IMG_5684-02.png" +bindsym $mod+e exec --no-startup-id xdg-open $HOME +bindsym $mod+l exec --no-startup-id i3lock -f -i "/usr/share/backgrounds/xfce/xfce-blue.jpg" bindsym $mod+F10 exec pactl set-sink-mute 0 toggle bindsym $mod+F11 exec pactl set-sink-volume 0 -5% @@ -38,7 +46,7 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% # decrease sound volume bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound -bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 +# bindcode 156 exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800 # kill focused window bindsym $mod+Shift+q kill @@ -182,6 +190,8 @@ bindsym $mod+v split toggle bindsym $mod+space split toggle +# win+backspace +bindsym $mod+BackSpace move workspace to output right bindsym $mod+r mode "resize" # resize window (you can also use the mouse for that) @@ -213,24 +223,38 @@ mode "resize" { -exec xrandr --output HDMI-1 --right-of DP-1 -exec xrandr --output HDMI-1 --right-of VGA-1 +# exec xrandr --output HDMI-1 --right-of DP-1 +# exec xrandr --output HDMI-1 --right-of VGA-1 # exec /usr/bin/xrandr-reset.sh -exec setxkbmap -option caps:escape -exec xset r rate 330 40 -exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 +# exec setxkbmap -option caps:escape +# exec setxkbmap -layout en_US -variant altgr-intl + +exec xrandr --output HDMI1 --left-of eDP1 +exec xset r rate 330 40 +# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1 +exec ibus-daemon -xd +exec gpg-agent --daemon exec gnome-keyring-daemon --start --components=secrets # start compositor... exec compton -b --config ~/.config/i3/compton.conf exec nitrogen --restore exec nm-applet +exec kaze +exec /home/cpohle/.local/bin/vdirsyncer_sync +exec owncloud + +# clipboard manger, so that the clipboard survives when a program exits +exec setsid parcellite +# deactivate thinkpad touchpad +exec synclient TouchpadOff=1 + -exec setsid dbus-launch hexchat --minimize=2 +# exec setsid dbus-launch hexchat --minimize=2 # ============================================== @@ -264,12 +288,12 @@ set_from_resource $foreground base16.cursor $cursorColor # Basic bar configuration using the Base16 variables. bar { # status_command i3status --config ~/.config/i3/i3status.conf - status_command /home/max/src/i3status/i3status --config ~/.config/i3/i3status.conf + status_command i3status --config ~/.config/i3/i3status.conf tray_padding 2 mode dock strip_workspace_numbers yes - separator_symbol "│" + separator_symbol " " colors { background $base00 @@ -297,6 +321,7 @@ client.background $background # for_window [class="^.*"] border normal 3 # for_window [title="^.*Thunderbird"] border pixel 0 # for_window [title="^.*Chromium"] border pixel 0 +for_window [title="^.*Firefox"] border pixel 5 # for_window [class="Gvim"] border pixel 0 # for_window [class="(?i)xfce4-terminal"] border pixel 0 # for_window [class="(?i)xfce4-appfinder"] border pixel 0 diff --git a/i3status.conf b/i3status.conf index 127af25..ceb43a2 100644 --- a/i3status.conf +++ b/i3status.conf @@ -7,11 +7,11 @@ # If the above line is not correctly displayed, fix your editor first! general { - colors = true + colors = false #color_good = "#88ff88" #color_bad = "#880000" - color_good = "#ffffff" - color_bad = "#666666" + color_good = "#666666" + color_bad = "#660000" interval = 1 output_format = i3bar separator = 'X' @@ -21,15 +21,16 @@ order += "ipv6" # order += "run_watch VPN" order += "path_exists VPN" order += "run_watch DHCP" -# order += "wireless _first_" +order += "wireless _first_" order += "ethernet _first_" -order += "ethernet enp7s0" -# order += "battery 0" +# order += "ethernet enp0s31f6" +order += "battery 0" order += "cpu_temperature 1" order += "cpu_usage" -order += "cpu_temperature 2" +# order += "cpu_temperature 2" # order += "load" order += "disk /" +order += "disk /home" order += "volume master" order += "tztime localdate" order += "tztime localtime" @@ -52,27 +53,31 @@ cpu_temperature 2 } wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" + format_up = "📶%quality %essid %ip" + format_down = "📶 down" } ethernet _first_ { # if you use %speed, i3status requires root privileges - format_up = " %interface %ip (%speed)" - format_down = " %interface" + format_up = "🌍 %ip (%speed)" + format_down = "" } -ethernet enp7s0 { +ethernet enp0s31f6 { # if you use %speed, i3status requires root privileges - format_up = " %interface %ip (%speed)" - format_down = " %interface" + format_up = " enp0s31f6 %ip (%speed)" + format_down = " enp0s31f6 down" } battery 0 { - format = "%status %percentage %remaining" + format = "%status %percentage (%remaining)" + status_chr = "🔌" + status_bat = "🔋" + status_unk = "" + status_full = "🔋" } run_watch DHCP { @@ -87,8 +92,8 @@ path_exists VPN { path = "/proc/sys/net/ipv4/conf/tun0" separator = false separator_block_width = 8 - format = " " - format_down = " " + format = " 🔑" + format_down = "" } run_watch VPN { @@ -96,11 +101,11 @@ run_watch VPN { } tztime localtime { - format = " %H:%M" + format = "⌚ %H:%M " } tztime localdate { - format = " %Y-%m-%d:%A" + format = "📅 %Y-%m-%d:%A" } # load { @@ -108,13 +113,22 @@ tztime localdate { # } disk "/" { - format = " %avail" + format = "💽 / %percentage_avail free" + prefix_type = custom + low_threshold = 10 + format_below_threshold = "/ %percentage_avail free (%gbytes_avail)" +} + +disk "/home" { + format = "💽 /home %percentage_avail free" prefix_type = custom + low_threshold = 10 + format_below_threshold = "/home %percentage_avail free (%gbytes_avail)" } volume master { - format = " %volume" - format_muted = "♪: muted (%volume)" + format = "🔊 %volume" + format_muted = "🔇 %volume" device = "pulse:0" } -- cgit v1.2.3