Browse Source

new laptop tings

pull/3/head
Jibreil 4 years ago
parent
commit
01879ca343
  1. BIN
      bin/6cord
  2. 4
      dunst/.config/dunst/dunstrc
  3. 14
      home/.Xresources
  4. 52
      i3/.config/i3/config
  5. 4
      nvim/.config/nvim/init.vim
  6. 17
      polybar/.config/polybar/bluetooth.sh
  7. 67
      polybar/.config/polybar/config
  8. 125
      polybar/.config/polybar/pulseaudio-rofi.sh

BIN
bin/6cord

Binary file not shown.

4
dunst/.config/dunst/dunstrc

@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "250x5-40+3"
geometry = "400x30-40+3"
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
@ -85,7 +85,7 @@ @@ -85,7 +85,7 @@
### Text ###
font = Iosevka 10
font = Iosevka 16
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.

14
home/.Xresources

@ -15,10 +15,10 @@ Xft.lcdfilter: lcddefault @@ -15,10 +15,10 @@ Xft.lcdfilter: lcddefault
!URxvt.font:xft:curie:size=8
!URxvt.boldFont:xft:curie:size=8
URxvt.font: xft:Iosevka Term:style=medium:size=12
URxvt.boldFont: xft:Iosevka Term:style=bold:size=12
URxvt.italicFont: xft:Iosevka Term:style=italic:size=12
URxvt.boldItalicFont: xft:Iosevka Term:style=medium:size=12
URxvt.font: xft:Iosevka Term:style=regular:size=16
URxvt.boldFont: xft:Iosevka Term:style=bold:size=16
URxvt.italicFont: xft:Iosevka Term:style=italic:size=16
URxvt.boldItalicFont: xft:Iosevka Term:style=medium:size=16
URxvt.cursorUnderline: true
URxvt.cursorBlink: 1
@ -30,7 +30,7 @@ URxvt.internalBorder: 40 @@ -30,7 +30,7 @@ URxvt.internalBorder: 40
! rofi
rofi.bw: 8
rofi.font: Iosevka Term Regular 10
rofi.font: Iosevka Term Regular 14
rofi.color-enabled: true
rofi.color-window: #151718, #a074c4, #2c2e2f
rofi.color-normal: #151718, #d0d0d0, #151718, #a074c4, #151718
@ -40,8 +40,8 @@ rofi.line-margin: 5 @@ -40,8 +40,8 @@ rofi.line-margin: 5
! rofi.separator-style: solid
rofi.hide-scrollbar: true
rofi.matching: fuzzy
rofi.lines: 10
rofi.width: 20
rofi.lines: 5
rofi.width: 30
! rofi.location: 2
rofi.padding: 40
rofi.fullscreen: false

52
i3/.config/i3/config

@ -92,7 +92,7 @@ bindsym $mod+space focus mode_toggle @@ -92,7 +92,7 @@ bindsym $mod+space focus mode_toggle
## font
font pango:iosevka 12
font pango:iosevka 16
## gaps
@ -196,14 +196,6 @@ bindsym $mod+Shift+Up move up @@ -196,14 +196,6 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
## numpad binds
# kill window
bindsym $mod+Muhenkan kill
# toggle floating
bindsym $mod+Hiragana_Katakana floating toggle
## power menu
@ -296,38 +288,36 @@ bindsym $mod+Return exec urxvt --depth 32 @@ -296,38 +288,36 @@ bindsym $mod+Return exec urxvt --depth 32
## volume
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 5 && ~/bin/volume
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 5 && ~/bin/volume
bindsym XF86AudioMute exec pulseaudio-ctl mute && ~/bin/volume
bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up 5
bindsym XF86AudioLowerVolume exec pulseaudio-ctl down 5
bindsym XF86AudioMute exec pulseaudio-ctl mute
bindsym $mod+slash mode "volume"
mode "volume" {
bindsym plus exec pulseaudio-ctl up && ~/bin/volume
bindsym minus exec pulseaudio-ctl down && ~/bin/volume
bindsym Up exec pulseaudio-ctl up && ~/bin/volume
bindsym Down exec pulseaudio-ctl down && ~/bin/volume
bindsym 1 exec pulseaudio-ctl set 10 && ~/bin/volume
bindsym 2 exec pulseaudio-ctl set 20 && ~/bin/volume
bindsym 3 exec pulseaudio-ctl set 30 && ~/bin/volume
bindsym 4 exec pulseaudio-ctl set 40 && ~/bin/volume
bindsym 5 exec pulseaudio-ctl set 50 && ~/bin/volume
bindsym 6 exec pulseaudio-ctl set 60 && ~/bin/volume
bindsym 7 exec pulseaudio-ctl set 70 && ~/bin/volume
bindsym 8 exec pulseaudio-ctl set 80 && ~/bin/volume
bindsym 9 exec pulseaudio-ctl set 90 && ~/bin/volume
bindsym 0 exec pulseaudio-ctl set 100 && ~/bin/volume
bindsym plus exec pulseaudio-ctl up
bindsym minus exec pulseaudio-ctl down
bindsym Up exec pulseaudio-ctl up
bindsym Down exec pulseaudio-ctl down
bindsym 1 exec pulseaudio-ctl set 10
bindsym 2 exec pulseaudio-ctl set 20
bindsym 3 exec pulseaudio-ctl set 30
bindsym 4 exec pulseaudio-ctl set 40
bindsym 5 exec pulseaudio-ctl set 50
bindsym 6 exec pulseaudio-ctl set 60
bindsym 7 exec pulseaudio-ctl set 70
bindsym 8 exec pulseaudio-ctl set 80
bindsym 9 exec pulseaudio-ctl set 90
bindsym 0 exec pulseaudio-ctl set 100
bindsym m exec pulseaudio-ctl mute && ~/bin/volume
bindsym m exec pulseaudio-ctl mute
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+c exec status
## wallpaper/colours

4
nvim/.config/nvim/init.vim

@ -87,7 +87,7 @@ set shiftwidth=4 @@ -87,7 +87,7 @@ set shiftwidth=4
" Pickachu
let g:pickachu_default_date_format = "%d.%m.%Y"
" let g:pickachu_default_date_format = "%d.%m.%Y"
"=====================================================
@ -104,7 +104,7 @@ Plug 'rbgrouleff/bclose.vim' @@ -104,7 +104,7 @@ Plug 'rbgrouleff/bclose.vim'
Plug 'junegunn/goyo.vim'
Plug 'DougBeney/pickachu'
" Plug 'DougBeney/pickachu'
Plug 'google/vim-codefmt'
Plug 'google/vim-maktaba'

17
polybar/.config/polybar/bluetooth.sh

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
#!/bin/sh
if [ "$(bluetoothctl -- show 14:AB:C5:70:C9:97 | grep -i "Powered")" = " Powered: yes" ]; then
if [ "$(bluetoothctl -- info 20:9B:A5:92:CC:61 | grep -i "Connected")" = " Connected: yes" ]; then
echo " "
else
echo " "
fi
else
echo ""
fi

67
polybar/.config/polybar/config

@ -41,7 +41,7 @@ secondary = #bf5f4d @@ -41,7 +41,7 @@ secondary = #bf5f4d
[sizes]
bar-width = 2520
bar-height = 38
bar-height = 50
bar-offset-x = 40
bar-top-gap = 30
@ -50,7 +50,7 @@ bar-bottom-gap = 30 @@ -50,7 +50,7 @@ bar-bottom-gap = 30
;=====================================================
[bar/kingk22]
monitor = HDMI-2
monitor = eDP1
bottom = true
fixed-center = true
width = ${sizes.bar-width}
@ -75,15 +75,15 @@ padding-right = 5 @@ -75,15 +75,15 @@ padding-right = 5
module-margin-left = 2
module-margin-right = 2
font-0 = WunconSiji
font-1 = FontAwesome:size=12;0
font-2 = Iosevka:weight=medium:pixelsize=12;0
font-0 = Wuncon Siji
font-1 = FontAwesome:size=18;0
font-2 = Iosevka:weight=medium:pixelsize=18;0
font-3 = NotoSans-Regular:size=8;0
font-4 = Kochi Gothic:size=8;0
modules-left = i3 spotify
modules-left = i3
modules-center = xwindow
modules-right = xkeyboard2 xkeyboard wlan backlight-acpi volume battery date
modules-right = xkeyboard bluetooth wlan backlight-acpi pulseaudio-rofi battery date
;separator = |
@ -122,6 +122,7 @@ screenchange-reload = true @@ -122,6 +122,7 @@ screenchange-reload = true
;
;=====================================================
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
@ -184,6 +185,20 @@ animation-charging-framerate = 250 @@ -184,6 +185,20 @@ animation-charging-framerate = 250
;=====================================================
[module/bluetooth]
type = custom/script
exec = ~/.config/polybar/bluetooth.sh
tail = true
format-foreground = ${colours.primary}
double-click-left = bluetoothctl -- power on
double-click-right = bluetoothctl -- power off
;=====================================================
[module/cpu]
type = internal/cpu
interval = 1
@ -300,7 +315,7 @@ bar-progress-empty = ─ @@ -300,7 +315,7 @@ bar-progress-empty = ─
[module/wlan]
type = internal/network
interface = wlp3s0
interface = wlp4s0
interval = 3.0
format-connected = <label-connected>
@ -358,23 +373,43 @@ label-warn = TEMP: %temperature% @@ -358,23 +373,43 @@ label-warn = TEMP: %temperature%
;=====================================================
[module/volume]
type = internal/volume
[module/pulseaudio-rofi]
type = custom/script
exec = ~/.config/polybar/pulseaudio-rofi.sh --output_volume_listener
format-volume = <label-volume>
label-volume = %percentage%%
tail = true
format-muted = <label-muted>
label-muted = mute
click-right = ~/.config/polybar/pulseaudio-rofi.sh --output
click-left = ~/.config/polybar/pulseaudio-rofi.sh --mute
scroll-up = ~/.config/polybar/pulseaudio-rofi.sh --volume_up
scroll-down = ~/.config/polybar/pulseaudio-rofi.sh --volume_down
format-volume-foreground = ${colours.primary}
format-muted-foreground = ${colours.purple}
format = <label>
format-foreground = ${colours.primary}
;[module/volume]
;type = internal/volume
;format-volume = <label-volume>
;label-volume = %percentage%%
;format-muted = <label-muted>
;label-muted = mute
;format-volume-foreground = ${colours.primary}
;format-muted-foreground = ${colours.purple}
;[module/pulseaudio]
;type = internal/pulseaudio
;sink = (from 'pacmd list-sinks | grep -i "name.*>"'
;use-ui-max = true
;interval = 5
;=====================================================
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format = <label-indicator>
label-indicator =

125
polybar/.config/polybar/pulseaudio-rofi.sh

@ -0,0 +1,125 @@ @@ -0,0 +1,125 @@
#!/bin/sh
outputs() {
OUTPUT=$(pactl list short sinks | cut -f 2 | rofi -dmenu -p "Output" -mesg "Select prefered output source" )
pacmd set-default-sink "$OUTPUT" >/dev/null 2>&1
for playing in $(pacmd list-sink-inputs | awk '$1 == "index:" {print $2}'); do
pacmd move-sink-input "$playing" "$OUTPUT" >/dev/null 2>&1
done
}
inputs() {
INPUT=$(pactl list short sources | cut -f 2 | grep input | rofi -dmenu -p "Output" -mesg "Select prefered input source" )
pacmd set-default-source "$INPUT" >/dev/null 2>&1
for recording in $(pacmd list-source-outputs | awk '$1 == "index:" {print $2}'); do
pacmd move-source-output "$recording" "$INPUT" >/dev/null 2>&1
done
}
volume_up() {
pactl set-sink-volume @DEFAULT_SINK@ +3%
}
volume_down() {
pactl set-sink-volume @DEFAULT_SINK@ -3%
}
mute() {
pactl set-sink-mute @DEFAULT_SINK@ toggle
}
volume_source_up() {
pactl set-source-volume @DEFAULT_SOURCE@ +3%
}
volume_source_down() {
pactl set-source-volume @DEFAULT_SOURCE@ -3%
}
mute_source() {
pactl set-source-mute @DEFAULT_SOURCE@ toggle
}
get_default_sink() {
pacmd stat | awk -F": " '/^Default sink name: /{print $2}'
}
output_volume() {
pacmd list-sinks | awk '/^\s+name: /{indefault = $2 == "'"<$(get_default_sink)>"'"}
/^\s+muted: / && indefault {muted=$2}
/^\s+volume: / && indefault {volume=$5}
END { print muted=="no"?volume:"Muted" }'
}
get_default_source() {
pacmd stat | awk -F": " '/^Default source name: /{print $2}'
}
input_volume() {
pacmd list-sources | awk '/^\s+name: /{indefault = $2 == "'"<$(get_default_source)>"'"}
/^\s+muted: / && indefault {muted=$2}
/^\s+volume: / && indefault {volume=$5}
END { print muted=="no"?volume:"Muted" }'
}
output_volume_listener() {
pactl subscribe | while read -r event; do
if echo "$event" | grep -q "change"; then
output_volume
fi
done
}
input_volume_listener() {
pactl subscribe | while read -r event; do
if echo "$event" | grep -q "change"; then
input_volume
fi
done
}
case "$1" in
--output)
outputs
;;
--input)
inputs
;;
--mute)
mute
;;
--mute_source)
mute_source
;;
--volume_up)
volume_up
;;
--volume_down)
volume_down
;;
--volume_source_up)
volume_source_up
;;
--volume_source_down)
volume_source_down
;;
--output_volume)
output_volume
;;
--input_volume)
input_volume
;;
--output_volume_listener)
output_volume
output_volume_listener
;;
--input_volume_listener)
input_volume
input_volume_listener
;;
*)
echo "Wrong argument"
;;
esac
Loading…
Cancel
Save