Compare commits

...

10 Commits

Author SHA1 Message Date
Quad ba3e81610c Stop using tput, for better compatibility with BSDs 2020-02-06 10:06:52 +01:00
Quad 2e4486043a Edit path 2020-02-04 21:10:46 +01:00
Dominik V. Salonen 3cfba1827a Switch volume module to pulse
wow this one is quite overdue
2018-10-14 18:49:04 +02:00
Dominik V. Salonen 56dcc16af4 Add polybar launch script 2018-10-14 18:43:51 +02:00
Dominik V. Salonen 5adc63f6cc Add i3 config 2018-10-14 18:42:53 +02:00
Dominik V. Salonen 08aba6f240 Add bars for i3 2018-10-14 18:41:00 +02:00
Dominik V. Salonen b88c4cfb38 update polybar conf 2018-10-12 22:45:21 +02:00
Dominik V. Salonen 86e2d06bae Add Polybar config from T480
For the HiDPI screen. Not particularly useful for other machines at its current size
2018-05-17 19:32:55 +02:00
Dominik V. Salonen 70c92b1849 New laptop, new conky 2018-05-01 12:43:43 +00:00
Dominik V. Salonen e50f58d76e Add a border to the active desktop name 2018-04-01 22:49:36 +02:00
6 changed files with 580 additions and 17 deletions

View File

@ -0,0 +1,346 @@
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = #1a1a1a
background-alt = #444
foreground = #dfdfdf
foreground-alt = #555
primary = #ff5555
secondary = #ff5555
alert = #bd2c40
[bar/main]
width = 100%
height = 54
radius = 0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 15
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = RobotoMono:pixelsize=18;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=18;1
modules-left = workspaces xkeyboard volume xbacklight
modules-center = xwindow
modules-right = wlan eth-dock eth cpu memory battery1 battery2 temperature date
cursor-click = pointer
cursor-scroll = ns-resize
[bar/i3]
width = 100%
height = 60
radius = 0
fixed-center = false
dpi = 192
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 4
line-color = #f00
border-left-size = 30
border-top-size = 30
border-right-size = 30
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = RobotoMono:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=18;1
modules-left = workspaces xkeyboard volume xbacklight xwindow
modules-right = wlan eth-dock eth cpu memory battery1 battery2 temperature date
cursor-click = pointer
cursor-scroll = ns-resize
[bar/i3-ldpi]
width = 100%
height = 29
radius = 0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2
line-color = #f00
border-left-size = 15
border-top-size = 15
border-right-size = 15
border-color = #00000000
padding-left = 2
padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = Terminus:pixelsize=9;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=8;1
modules-left = workspaces xkeyboard volume xbacklight xwindow
modules-right = wlan eth-dock eth cpu memory battery1 battery2 temperature date
cursor-click = pointer
cursor-scroll = ns-resize
[module/workspaces]
type = internal/xworkspaces
label-monitor = " %name% "
label-occupied = "%name% "
label-urgent = " %name% "
label-active = " %name% "
label-empty = " %name% "
label-inactive = " %name% "
label-active-underline = ${colors.secondary}
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
label-maxlen = 50
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = "KB "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 20
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = ${colors.secondary}
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #55ff55
label = %percentage_used:2%%
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9999FF
format-connected-prefix = "WiFi"
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %essid:0:12:...%
format-disconnected = <label-disconnected>
format-disconnected-underline = ${colors.foreground-alt}
format-disconnected-prefix = "WiFi "
format-disconnected-prefix-foreground = ${colors.foreground-alt}
label-disconnected = Offline
ramp-signal-0 =
ramp-signal-1 =
ramp-signal-2 =
ramp-signal-3 =
ramp-signal-4 =
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = #55ff55
format-connected-prefix = "eth "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = Online
format-disconnected =
[module/eth-dock]
type = internal/network
interface = enp0s20f0u4u2u1
interval = 3.0
format-connected-underline = #55ff55
format-connected-prefix = "eth "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = Online
format-disconnected =
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-underline = #5555ff
label = %date% %time%
[module/volume]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}
format-muted-prefix =
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 20
bar-volume-foreground-0 = #55ff55
bar-volume-foreground-1 = #55ff55
bar-volume-foreground-2 = #55ff55
bar-volume-foreground-3 = #55ff55
bar-volume-foreground-4 = #55ff55
bar-volume-foreground-5 = #ffff55
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[template/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffff55
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${colors.foreground-alt}
format-charging-prefix-foreground = ${colors.foreground-alt}
format-discharging-prefix-foreground = ${colors.foreground-alt}
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/battery1]
inherit = template/battery
battery = BAT0
format-charging-prefix = IB
format-discharging-prefix = IB
format-full-prefix = IB
[module/battery2]
inherit = template/battery
battery = BAT1
format-charging-prefix = EB
format-discharging-prefix = EB
format-full-prefix = EB
[module/temperature]
type = internal/temperature
thermal-zone = 5
warn-temperature = 70
format = <ramp> <label>
format-underline = ${colors.primary}
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 =
ramp-1 =
ramp-2 =
ramp-foreground = ${colors.foreground-alt}
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0

View File

@ -0,0 +1,14 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch polybar
if [ $GDK_SCALE = 1 ]; then
polybar i3-ldpi &
else
polybar i3 &
fi

View File

@ -1,4 +1,4 @@
#---- Generated by tint2conf e32c ----
#---- Generated by tint2conf 30a6 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
@ -70,16 +70,16 @@ border_color_hover = #000000 30
background_color_pressed = #000000 60
border_color_pressed = #000000 30
# Background 6:
# Background 6: Active desktop name
rounded = 0
border_width = 0
border_sides = TBLR
border_width = 3
border_sides = B
border_content_tint_weight = 0
background_content_tint_weight = 0
background_color = #1a1a1a 100
border_color = #000000 30
background_color_hover = #000000 60
border_color_hover = #000000 30
background_color = #222222 100
border_color = #f0544c 100
background_color_hover = #000000 0
border_color_hover = #f0544c 100
background_color_pressed = #000000 60
border_color_pressed = #000000 30
@ -124,7 +124,7 @@ taskbar_hide_different_desktop = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_active_background_id = 6
taskbar_name_font = tewii 8
taskbar_name_font_color = #999999 100
taskbar_name_active_font_color = #ffffff 100

View File

@ -8,7 +8,7 @@
##############################################
background yes
use_xft yes
xftfont tewi:size=8
xftfont Terminus:Bold:size=14
xftalpha 1
update_interval 1.0
total_run_times 0
@ -17,8 +17,8 @@ own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 140 140
maximum_width 140
minimum_size 240 240
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
@ -27,8 +27,8 @@ default_color 65EE45
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 16
gap_y 16
gap_x 30
gap_y 102
no_buffers yes
uppercase no
cpu_avg_samples 2
@ -42,7 +42,8 @@ ${color #d1d1d1}SYSTEM INFORMATION $hr${color}
Host:$alignr$nodename
Kernel:$alignr$kernel
Uptime:$alignr$uptime
Battery$alignr${battery_percent BAT0}%
Battery 1:$alignr${battery_percent BAT0}%
Battery 2:$alignr${battery_percent BAT1}%
${color #d1d1d1}NETWORK $hr${color}
Gateway:$alignr$gw_ip

202
display/wm/i3.conf Normal file
View File

@ -0,0 +1,202 @@
# 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 pango:monospace 8
# 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 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# 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 xfce4-terminal
# Window border colors
set $FOCUS #FF5555
set $UNFOCUS #1A1A1A
# Window borders
client.focused $FOCUS $FOCUS $FOCUS $FOCUS
client.focused_inactive $UNFOCUS $UNFOCUS $UNFOCUS $UNFOCUS
client.unfocused $UNFOCUS $UNFOCUS $UNFOCUS $UNFOCUS
client.urgent $FOCUS $FOCUS $FOCUS $FOCUS
client.background $UNFOCUS
for_window [class="^.*"] border pixel 3
focus_follows_mouse no
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# 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
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
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+colon 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
# focus the child container
#bindsym $mod+d focus child
# 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 $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
# move focused container to workspace
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
# 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-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" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows 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"
# Custom keybinds
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
bindsym Print exec xfce4-screenshooter -r -s /home/quad/Pictures/Screenshots
bindsym Shift+Print exec xfce4-screenshooter -w -s /home/quad/Pictures/Screenshots
bindsym $mod+Print exec xfce4-screenshooter -f -s /home/quad/Pictures/Screenshots
bindsym $mod+a exec xrandr --auto
gaps inner 15
# Start polybar
exec_always --no-startup-id ~/.config/i3/polybar.sh
# Startup applications
exec volumeicon &
exec compton &
exec devmon --sync &
exec blueman-applet &
exec pulseaudio --start &
# Startup + reload applications
exec_always nitrogen --restore &

View File

@ -4,10 +4,10 @@
#
# Custom prompt
export PS1="\[$(tput bold)\]\[$(tput setaf 2)\]\h\[$(tput setaf 7)\] - \[$(tput setaf 1)\]\u\[$(tput setaf 7)\] - \[$(tput setaf 4)\]\W \[$(tput setaf 7)\]\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
export export PS1="\[\e[1;32m\]\h\[\e[m\] - \[\e[1;31m\]\u\[\e[m\] - \[\e[1;34m\]\W\[\e[m\] \\$ "
# Add local folders to PATH
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/.local/bin:$HOME/.local/scripts/public:$HOME/.local/scripts/private"
# Old habits die hard
alias screenfetch="neofetch"