Procházet zdrojové kódy

fixed backlight and volume controls with i3

master
mort před 9 roky
rodič
revize
f00ec6d074
4 změnil soubory, kde provedl 6 přidání a 100 odebrání
  1. 0
    26
      dotfiles/i3/.conkyrc
  2. 0
    70
      dotfiles/i3/.i3status.conf
  3. 4
    4
      dotfiles/i3/config
  4. 2
    0
      setup.sh

+ 0
- 26
dotfiles/i3/.conkyrc Zobrazit soubor

@@ -1,26 +0,0 @@
background no
out_to_console yes
out_to_x no
update_interval 1
total_run_times 0
short_units yes
pad_percents 3
use_spacer left
seporator_block_width 0
override_utf8_locale yes

TEXT
,[\
{"full_text": "↑", "color":"\#E8E8D3", "separator": false },\
{"full_text": "${upspeed eth0}", "color":"\#799D6A", "separator": false },\
{"full_text": "↓", "color":"\#E8E8D3", "separator": false },\
{"full_text": "${downspeed eth0}", "color":"\#799D6A", "separator": false },\
{"full_text": "||", "color":"\#E8E8D3", "separator": false },\
{"full_text": "$mem", "color":"\#799D6A", "separator": false },\
{"full_text": "■", "color":"\#E8E8D3", "separator": false },\
{"full_text": "$cpubar", "color":"\#799D6A", "separator": false },\
{"full_text": "≈", "color":"\#E8E8D3", "separator": false },\
{"full_text": "${hwmon 0 temp 1}°C", "color":"\#799D6A", "separator": false },\
{"full_text": "⌛", "color":"\#E8E8D3", "separator": false },\
{"full_text": "${time %I:%M %m/%d}", "color":"\#799D6A", "separator": false }\
]

+ 0
- 70
dotfiles/i3/.i3status.conf Zobrazit soubor

@@ -1,70 +0,0 @@
general {
colors = true
color_good = '#88b090'
color_degraded = '#ccdc90'
color_bad = '#e89393'
interval = 1
}

order += "volume master"
#order += "ipv6"
order += "disk /"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless wlan0"
#order += "ethernet eth0"
#order += "battery 0"
#order += "cpu_temperature 0"
order += "load"
order += "cpu_usage 0"
order += "time"

wireless wlan0 {
format_up = "W: (%quality at %essid) %ip"
format_down = "W: down"
}

ethernet eth0 {
# if you use %speed, i3status requires root privileges
format_up = "%ip"
format_down = "E: down"
}

battery 0 {
format = "%status %percentage %remaining"
}

run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}

run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}

time {
format = " %a, %m %e %l:%M %p"
}

load {
format = " %1min "
}

cpu_usage {
format = " %usage "
}

cpu_temperature 0 {
format = " %degrees °C"
}

disk "/" {
format = " %free "
}

volume master {
format = " %volume "
device = "default"
mixer = "Master"
mixer_idx = 0
}

+ 4
- 4
dotfiles/i3/config Zobrazit soubor

@@ -200,10 +200,10 @@ bar {
}

# volume and audio
bindsym XF86AudioLowerVolume exec vol -10
bindsym XF86AudioRaiseVolume exec vol +10
bindsym XF86MonBrightnessDown exec xbacxlight -dec 10
bindsym XF86MonBrightnessUp exec xbacxlight -inc 10
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%- && killall -USR1 i3status
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 5%+ && killall -USR1 i3status
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
bindsym XF86MonBrightnessUp exec xbacklight -inc 10

# augment mouse
bindsym $mod+a exec xdotool mousemove_relative -- -10 0

+ 2
- 0
setup.sh Zobrazit soubor

@@ -18,6 +18,8 @@ check_exists "i3"
check_exists "tmux"
check_exists "vim"
check_exists "compton"
check_exists "amixer"
check_exists "xbacklight"

echo "Copying dotfiles..."
cd dotfiles

Načítá se…
Zrušit
Uložit