├── .Xresources ├── .config ├── Kvantum │ ├── gruvbox-fallnn │ │ ├── gruvbox-fallnn.kvconfig │ │ └── gruvbox-fallnn.svg │ └── kvantum.kvconfig ├── alacritty │ └── alacritty.yml ├── cava │ └── config ├── conky │ ├── Gotham │ │ ├── Bioshock2.cmtheme │ │ ├── Gotham │ │ ├── Gotham.jpg │ │ ├── lol │ │ └── source.txt │ ├── config.conf │ ├── conky.conf.old │ ├── conkyrc.working.bak │ ├── gotham.conf │ ├── gotham.orig │ ├── leftpane.conf │ ├── nordcore │ │ ├── accu_weather │ │ │ ├── accu_weather │ │ │ └── rss │ │ │ │ ├── acc_rss │ │ │ │ ├── weather │ │ │ │ └── weather_raw │ │ ├── clock01_rings.lua │ │ ├── conkyrc2core │ │ ├── conkyrc2core.png │ │ ├── fonts │ │ │ ├── AvantGarde_LT_Medium.ttf │ │ │ └── Radio_Space.ttf │ │ ├── source.txt │ │ ├── start_conky.sh │ │ ├── start_conky.sh.desktop │ │ ├── weather │ │ └── weather_raw │ └── scripts │ │ ├── druidcal.sh │ │ └── stardate.sh ├── dunst │ └── base16-nord.dunstrc ├── glava │ ├── bars │ ├── bars.glsl │ ├── circle │ ├── circle.glsl │ ├── env_KWin.glsl │ ├── env_Openbox.glsl │ ├── env_Xfwm4.glsl │ ├── env_awesome.glsl │ ├── env_default.glsl │ ├── env_i3.glsl │ ├── graph │ ├── graph.glsl │ ├── radial │ ├── radial.glsl │ ├── rc.glsl │ ├── smooth_parameters.glsl │ ├── util │ ├── wave │ └── wave.glsl ├── i3 │ ├── Blocks │ │ ├── bandwidth │ │ ├── battery │ │ ├── brightness │ │ ├── cpu │ │ ├── fcitx │ │ ├── firewall │ │ ├── headphone │ │ ├── keystate │ │ ├── mediaplayer │ │ ├── memory │ │ ├── microphone │ │ ├── notifier │ │ ├── playerctl2 │ │ ├── ssid │ │ ├── sslocal │ │ ├── temperature │ │ ├── time │ │ ├── usb │ │ ├── volume │ │ ├── weather │ │ ├── webcam │ │ └── window │ ├── config │ ├── config.original │ ├── i3blocks.conf │ ├── picom.conf │ └── scripts │ │ ├── i3exit.sh │ │ ├── mouse.sh │ │ └── screenoff.sh ├── i3blocks │ ├── battery │ │ └── battery_info.sh │ ├── config │ ├── cpu │ │ └── cpu_info.sh │ ├── sound │ │ ├── sound_burst.sh │ │ └── sound_info.sh │ └── weather │ │ ├── Makefile │ │ ├── forecast.xml │ │ ├── weather.py │ │ ├── weather_info.sh │ │ ├── weather_signaler │ │ └── weather_signaler.c ├── mpd │ ├── mpd.conf │ ├── mpd.db │ └── mpd.state ├── mpv │ └── mpv.conf ├── ncmpcpp │ ├── bindings │ ├── config │ └── error.log ├── nvim │ ├── autoload │ │ └── plug.vim │ ├── init.vim │ └── vim-plug │ │ └── plugins.vim ├── picom │ ├── picom.conf.original │ └── picom.sample.conf ├── polybar │ ├── README.md │ ├── dark-colors │ ├── dark-config │ ├── launch.sh │ ├── light-colors │ ├── light-config │ ├── nord-config │ ├── nord-down │ ├── nord-top │ ├── polybar-nord.png │ ├── screenshots │ │ └── rofi-run.png │ ├── scripts │ │ ├── clash.sh │ │ ├── clipmenu.sh │ │ ├── daily-poem │ │ ├── info-hackspeed.sh │ │ ├── mpv.sh │ │ ├── onedrive.sh │ │ ├── openweathermap-fullfeatured.sh │ │ ├── poem.txt │ │ ├── polybar-kdeconnect.sh │ │ ├── rofi_run │ │ ├── spotify_status.py │ │ ├── themes │ │ │ └── dmenu.rasi │ │ ├── toggle-redshift.sh │ │ └── toggle_bluetooth.sh │ ├── systemd │ │ └── clash.service │ └── wallpaper.jpg ├── ranger │ ├── commands.py │ ├── commands_full.py │ ├── rc.conf │ ├── rifle.conf │ └── scope.sh ├── rofi │ ├── Nord.rasi │ ├── config │ └── config.rasi ├── samples │ ├── Screenshot from 2022-03-11 13-31-18.png │ ├── Screenshot from 2022-03-11 13-33-10.png │ ├── Screenshot from 2022-03-11 13-33-34.png │ ├── Screenshot from 2022-03-11 13-36-14.png │ └── Screenshot from 2022-03-11 13-36-31.png ├── spotify │ └── Users │ │ └── lpek7521jr4gcr6oadt7a8rcb-user │ │ └── prefs └── zathura │ └── zathurarc ├── .icons ├── PearDarkCursors │ ├── cursor.theme │ └── cursors │ │ ├── 00000000000000020006000e7e9ffc3f │ │ ├── 00008160000006810000408080010102 │ │ ├── 03b6e0fcb3499374a867c041f52298f0 │ │ ├── 08e8e1c95fe2fc01f976f1e063a24ccd │ │ ├── 1081e37283d90000800003c07f3ef6bf │ │ ├── 3085a0e285430894940527032f8b26df │ │ ├── 3ecb610c1bf2410f44200f48c40d3599 │ │ ├── 4498f0e0c1937ffe01fd06f973665830 │ │ ├── 5c6cd98b3f3ebcb1f9c7f1c204630408 │ │ ├── 6407b0e94181790501fd1e167b474872 │ │ ├── 640fb0e74195791501fd1ed57b41487f │ │ ├── 9081237383d90e509aa00f00170e968f │ │ ├── 9d800788f1b08800ae810202380a0822 │ │ ├── a2a266d0498c3104214a47bd64ab0fc8 │ │ ├── alias │ │ ├── all-scroll │ │ ├── b66166c04f8c3109214a4fbd64a50fc8 │ │ ├── bottom_left_corner │ │ ├── bottom_right_corner │ │ ├── bottom_side │ │ ├── cell │ │ ├── center_ptr │ │ ├── circle │ │ ├── closedhand │ │ ├── col-resize │ │ ├── color-picker │ │ ├── context-menu │ │ ├── copy │ │ ├── cross │ │ ├── crossed_circle │ │ ├── crosshair │ │ ├── d9ce0ab605698f320427677b458ad60b │ │ ├── default │ │ ├── dnd-copy │ │ ├── dnd-move │ │ ├── dnd-no-drop │ │ ├── dnd-none │ │ ├── down-arrow │ │ ├── draft │ │ ├── e-resize │ │ ├── e29285e634086352946a0e7090d73106 │ │ ├── fcf21c00b30f7e3f83fe0dfd12e71cff │ │ ├── fleur │ │ ├── forbidden │ │ ├── h_double_arrow │ │ ├── half-busy │ │ ├── hand1 │ │ ├── hand2 │ │ ├── help │ │ ├── ibeam │ │ ├── left-arrow │ │ ├── left_ptr │ │ ├── left_ptr_help │ │ ├── left_ptr_watch │ │ ├── left_side │ │ ├── link │ │ ├── move │ │ ├── n-resize │ │ ├── no-drop │ │ ├── not-allowed │ │ ├── openhand │ │ ├── pencil │ │ ├── pirate │ │ ├── plus │ │ ├── pointer │ │ ├── pointing_hand │ │ ├── progress │ │ ├── question_arrow │ │ ├── right-arrow │ │ ├── right_ptr │ │ ├── right_side │ │ ├── row-resize │ │ ├── s-resize │ │ ├── sb_h_double_arrow │ │ ├── sb_v_double_arrow │ │ ├── size-bdiag │ │ ├── size-fdiag │ │ ├── size-hor │ │ ├── size-ver │ │ ├── size_all │ │ ├── size_bdiag │ │ ├── size_fdiag │ │ ├── size_hor │ │ ├── size_ver │ │ ├── split_h │ │ ├── split_v │ │ ├── text │ │ ├── top_left_arrow │ │ ├── top_left_corner │ │ ├── top_right_corner │ │ ├── top_side │ │ ├── up-arrow │ │ ├── v_double_arrow │ │ ├── vertical-text │ │ ├── w-resize │ │ ├── wait │ │ ├── watch │ │ ├── wayland-cursor │ │ ├── whats_this │ │ ├── x-cursor │ │ ├── xterm │ │ ├── zoom-in │ │ └── zoom-out └── default │ └── index.theme ├── .local └── share │ └── rofi │ └── themes │ └── squared-everforest.rasi ├── Pictures └── walls │ ├── 10.png │ ├── 11.png │ ├── 28.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── cottage.jpg │ ├── fall.png │ ├── forest-4.jpg │ ├── gruvbox_hack8.png │ ├── gruvherc.png │ ├── gruvtile.png │ ├── river.jpg │ ├── satellite.jpg │ ├── wall_secondary.png │ └── waterfall2.jpg └── README.md /.Xresources: -------------------------------------------------------------------------------- 1 | ! ----------------------------------------------------------------------------- 2 | ! File: gruvbox-dark.xresources 3 | ! Description: Retro groove colorscheme generalized 4 | ! Author: morhetz 5 | ! Source: https://github.com/morhetz/gruvbox-generalized 6 | ! Last Modified: 6 Sep 2014 7 | ! ----------------------------------------------------------------------------- 8 | 9 | ! hard contrast: *background: #1d2021 10 | *background: #282828 11 | ! soft contrast: *background: #32302f 12 | *foreground: #ebdbb2 13 | ! Black + DarkGrey 14 | *color0: #282828 15 | *color8: #928374 16 | ! DarkRed + Red 17 | *color1: #cc241d 18 | *color9: #fb4934 19 | ! DarkGreen + Green 20 | *color2: #98971a 21 | *color10: #b8bb26 22 | ! DarkYellow + Yellow 23 | *color3: #d79921 24 | *color11: #fabd2f 25 | ! DarkBlue + Blue 26 | *color4: #458588 27 | *color12: #83a598 28 | ! DarkMagenta + Magenta 29 | *color5: #b16286 30 | *color13: #d3869b 31 | ! DarkCyan + Cyan 32 | *color6: #689d6a 33 | *color14: #8ec07c 34 | ! LightGrey + White 35 | *color7: #a89984 36 | *color15: #ebdbb2 37 | 38 | Xcursor.theme: gruvboxcursor 39 | -------------------------------------------------------------------------------- /.config/Kvantum/kvantum.kvconfig: -------------------------------------------------------------------------------- 1 | [General] 2 | theme=gruvbox-fallnn 3 | -------------------------------------------------------------------------------- /.config/cava/config: -------------------------------------------------------------------------------- 1 | ## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting. 2 | 3 | 4 | [general] 5 | 6 | # Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 7 | ; mode = normal 8 | 9 | # Accepts only non-negative values. 10 | ; framerate = 60 11 | 12 | # 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off 13 | # new as of 0.6.0 autosens of low values (dynamic range) 14 | # 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 15 | ; autosens = 0 16 | ; overshoot = 20 17 | 18 | # Manual sensitivity in %. If autosens is enabled, this will only be the initial value. 19 | # 200 means double height. Accepts only non-negative values. 20 | ; sensitivity = 100 21 | 22 | # The number of bars (0-200). 0 sets it to auto (fill up console). 23 | # Bars' width and space between bars in number of characters. 24 | ; bars = 0 25 | ; bar_width = 2 26 | ; bar_spacing = 1 27 | 28 | 29 | # Lower and higher cutoff frequencies for lowest and highest bars 30 | # the bandwidth of the visualizer. 31 | # Note: there is a minimum total bandwidth of 43Mhz x number of bars. 32 | # Cava will automatically increase the higher cutoff if a too low band is specified. 33 | ; lower_cutoff_freq = 50 34 | ; higher_cutoff_freq = 10000 35 | 36 | 37 | # Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and 38 | # only check for input once per second. Cava will wake up once input is detected. 0 = disable. 39 | ; sleep_timer = 0 40 | 41 | 42 | [input] 43 | 44 | # Audio capturing method. Possible methods are: 'pulse', 'alsa', 'fifo', 'sndio' or 'shmem' 45 | # Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with. 46 | # 47 | # All input methods uses the same config variable 'source' 48 | # to define where it should get the audio. 49 | # 50 | # For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink 51 | # (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). 52 | # 53 | # For alsa 'source' will be the capture device. 54 | # For fifo 'source' will be the path to fifo-file. 55 | # For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address 56 | ; method = pulse 57 | ; source = auto 58 | 59 | ; method = alsa 60 | ; source = hw:Loopback,1 61 | 62 | ; method = fifo 63 | ; source = /tmp/mpd.fifo 64 | ; sample_rate = 44100 65 | ; sample_bits = 16 66 | 67 | ; method = shmem 68 | ; source = /squeezelite-AA:BB:CC:DD:EE:FF 69 | 70 | ; method = portaudio 71 | ; source = auto 72 | 73 | 74 | [output] 75 | 76 | # Output method. Can be 'ncurses', 'noncurses' or 'raw'. 77 | # 'noncurses' uses a custom framebuffer technique and draws only changes 78 | # from frame to frame. 'ncurses' is default if supported 79 | # 80 | # 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data 81 | # stream of the bar heights that can be used to send to other applications. 82 | # 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. 83 | ; method = ncurses 84 | 85 | # Visual channels. Can be 'stereo' or 'mono'. 86 | # 'stereo' mirrors both channels with low frequencies in center. 87 | # 'mono' outputs left to right lowest to highest frequencies. 88 | # 'mono_option' set mono to either take input from 'left', 'right' or 'average'. 89 | ; channels = stereo 90 | ; mono_option = average 91 | 92 | # Raw output target. A fifo will be created if target does not exist. 93 | ; raw_target = /dev/stdout 94 | 95 | # Raw data format. Can be 'binary' or 'ascii'. 96 | ; data_format = binary 97 | 98 | # Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). 99 | ; bit_format = 16bit 100 | 101 | # Ascii max value. In 'ascii' mode range will run from 0 to value specified here 102 | ; ascii_max_range = 1000 103 | 104 | # Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. 105 | # Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). 106 | ; bar_delimiter = 59 107 | ; frame_delimiter = 10 108 | 109 | 110 | 111 | [color] 112 | 113 | # Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. 114 | # Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires 115 | # ncurses output method and a terminal that can change color definitions such as Gnome-terminal or rxvt. 116 | # if supported, ncurses mode will be forced on if user defined colors are used. 117 | # default is to keep current terminal color 118 | ; background = default 119 | foreground = '#fbf1c7' 120 | 121 | # Gradient mode, only hex defined colors (and thereby ncurses mode) are supported, 122 | # background must also be defined in hex or remain commented out. 1 = on, 0 = off. 123 | # You can define as many as 8 different colors. They range from bottom to top of screen 124 | gradient = 1 125 | gradient_count = 2 126 | gradient_color_1 = '#fbf1c7' 127 | gradient_color_2 = '#ebdbb2' 128 | gradient_color_3 = '#fbf1c7' 129 | gradient_color_4 = '#ebdbb2' 130 | gradient_color_5 = '#fbf1c7' 131 | gradient_color_6 = '#fbf1c7' 132 | gradient_color_7 = '#fbf1c7' 133 | gradient_color_8 = '#fbf1c7' 134 | 135 | [smoothing] 136 | 137 | # Percentage value for integral smoothing. Takes values from 0 - 100. 138 | # Higher values means smoother, but less precise. 0 to disable. 139 | ; integral = 77 140 | 141 | # Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. 142 | ; monstercat = 0 143 | ; waves = 0 144 | 145 | # Set gravity percentage for "drop off". Higher values means bars will drop faster. 146 | # Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". 147 | ; gravity = 100 148 | 149 | 150 | # In bar height, bars that would have been lower that this will not be drawn. 151 | ; ignore = 0 152 | 153 | 154 | [eq] 155 | 156 | # This one is tricky. You can have as much keys as you want. 157 | # Remember to uncomment more then one key! More keys = more precision. 158 | # Look at readme.md on github for further explanations and examples. 159 | ; 1 = 1 # bass 160 | ; 2 = 1 161 | ; 3 = 1 # midtone 162 | ; 4 = 1 163 | ; 5 = 1 # treble 164 | -------------------------------------------------------------------------------- /.config/conky/Gotham/Bioshock2.cmtheme: -------------------------------------------------------------------------------- 1 | ~/.conky/Bioshock2/Hermoso_Rc 2 | ~/.conky/Bioshock2/wallpaper.jpg 3 | wallpaper-scaling:scaled 4 | -------------------------------------------------------------------------------- /.config/conky/Gotham/Gotham: -------------------------------------------------------------------------------- 1 | #Conky By Jesse Avalos See me on Eye candy Linux (Google +) for more conkys. 2 | background yes 3 | update_interval 1 4 | 5 | cpu_avg_samples 2 6 | net_avg_samples 2 7 | temperature_unit celsius 8 | 9 | double_buffer yes 10 | no_buffers yes 11 | text_buffer_size 2048 12 | alignment top_middle 13 | gap_x -50 14 | gap_y 85 15 | minimum_size 550 550 16 | maximum_width 550 17 | own_window yes 18 | own_window_type normal 19 | own_window_transparent yes 20 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 21 | own_window_argb_visual yes 22 | own_window_argb_value 0 23 | 24 | border_inner_margin 0 25 | border_outer_margin 0 26 | 27 | 28 | draw_shades no 29 | draw_outline no 30 | draw_borders no 31 | draw_graph_borders no 32 | default_shade_color 112422 33 | 34 | override_utf8_locale yes 35 | use_xft yes 36 | xftfont Feena Casual:size=10 37 | xftalpha 1 38 | uppercase yes 39 | 40 | default_color D6D5D4 41 | #E87E3C 42 | own_window_colour 000000 43 | TEXT 44 | 45 | 46 | ${font Anurati:size=75}${color D6D5D4}${time %A}#${color yellow} 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /.config/conky/Gotham/Gotham.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/conky/Gotham/Gotham.jpg -------------------------------------------------------------------------------- /.config/conky/Gotham/lol: -------------------------------------------------------------------------------- 1 | use_xft yes 2 | xftfont 123:size=8 3 | xftalpha 0.1 4 | update_interval 1 5 | total_run_times 0 6 | 7 | own_window yes 8 | own_window_type override 9 | background yes 10 | own_window_transparent yes 11 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 12 | own_window_colour 000000 13 | own_window_argb_visual no 14 | own_window_argb_value 0 15 | 16 | double_buffer yes 17 | #minimum_size 250 5 18 | #maximum_width 500 19 | draw_shades no 20 | draw_outline no 21 | draw_borders no 22 | draw_graph_borders no 23 | default_color white 24 | default_shade_color red 25 | default_outline_color green 26 | alignment top_right 27 | gap_x 0 28 | gap_y 20 29 | no_buffers yes 30 | uppercase no 31 | cpu_avg_samples 2 32 | net_avg_samples 1 33 | override_utf8_locale yes 34 | use_spacer yes 35 | 36 | 37 | minimum_size 0 0 38 | TEXT 39 | ${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %I:%M}${font}${voffset -84}${offset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -148}${time %A}${font} 40 | ${voffset 1}${offset 12}${font Ubuntu:pixelsize=12}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}% 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.config/conky/Gotham/source.txt: -------------------------------------------------------------------------------- 1 | http://psyjunta.deviantart.com/art/Gotham-Conky-config-205465419 2 | -------------------------------------------------------------------------------- /.config/conky/config.conf: -------------------------------------------------------------------------------- 1 | ### Neuromask connky config 2 | 3 | conky.config = { 4 | 5 | -- COLORS 6 | 7 | color1 = '0db9d7', -- Debian Red 8 | color2 = 'fa7ef8', -- Tan 1 9 | color3 = 'ede410', -- Orange 10 | 11 | --set to = true if you want Conky to be forked in the background 12 | background = false, -- set to false when editing for errors 13 | 14 | own_window = true, 15 | own_window_type = 'override', 16 | own_window_transparent = true, 17 | own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', 18 | own_window_argb_visual = true, 19 | own_window_argb_value = 128, 20 | out_to_console = false, 21 | use_xft = true, 22 | 23 | font = 'Hack:size=9:antialias=true', 24 | font2 = 'Hack:size=10:antialias=true', 25 | font3 = 'Hack:size=8:antialias=true', 26 | update_interval = 1, 27 | 28 | --This is the number of times Conky will update before quitting 29 | --Set to zero to run forever. 30 | --total_run_times 0 31 | 32 | --Create own window instead of using desktop (required in nautilus) 33 | own_window = true, 34 | 35 | --Use double buffering (reduces flicker, may not work for everyone) 36 | double_buffer = true, 37 | maximum_width = 320, 38 | 39 | draw_shades = false, 40 | 41 | --Draw outlines? 42 | draw_outline = false, 43 | 44 | --Draw borders around text 45 | draw_borders = false, 46 | 47 | --Stippled borders? 48 | stippled_borders = 1, 49 | 50 | --border width 51 | border_width = 20, 52 | 53 | --Default colors and also border colors 54 | default_color = 'white', 55 | default_shade_color = 'white', 56 | default_outline_color = 'white', 57 | 58 | --Text alignment, other possible values are commented 59 | alignment = 'top_right', 60 | 61 | --Gap between borders of screen and text 62 | gap_x = 48, 63 | gap_y = 64, 64 | 65 | --Add spaces to keep things from moving about? This only affects certain objects. 66 | use_spacer = 'left', 67 | 68 | --Subtract file system buffers from used memory? 69 | no_buffers = true, 70 | --no_buffers = false, 71 | 72 | --set to = true if you want all text to be in uppercase 73 | uppercase = false, 74 | 75 | default_bar_width = 140, 76 | default_bar_height = 6 77 | } 78 | 79 | conky.text = [[ 80 | ${alignc}${font Hack:size=64}${color3}${time %R}${font} 81 | ${alignc}${font Hack:size=16}${color3}${execi 300 date +"%x"}${color} ${time %A}${font} 82 | 83 | # 84 | ### WEATHER 85 | # 86 | ${color1}${stippled_hr}${color} 87 | ${font2}${color1}WEATHER${font} 88 | ${color3}${texeci 900 curl -s wttr.in/Tallinn?format=%l:+%C+%t+%w+%p}${color} 89 | ${texeci 900 curl -s wttr.in/Moscow?format=%l:+%C+%t+%w+%p} 90 | ${texeci 900 curl -s wttr.in/London?format=%l:+%C+%t+%w+%p} 91 | 92 | # 93 | ### NET 94 | # 95 | ${color1}${stippled_hr}${color} 96 | ${font2}${color1}ID/NET$color${alignr}$sysname ${color3}$kernel$color ${machine}${font} 97 | ${color3}${execi 9000 whoami}$color @ $nodename ${alignr}Desktop ${color3}${desktop}$color of ${desktop_number} 98 | 99 | BCST:${color3}${texeci 60 curl -s https://icanhazip.com}$color ${alignr}${wireless_mode wlo1} BASE 100 | MAC :${COLOR3}${wireless_ap wlo1}$COLOR ${alignr}${COLOR3}${wireless_essid wlo1}$COLOR 101 | 102 | ${color3}WiFi:$color${addr wlo1} ${alignr}${color3}SIG:$color${wireless_link_qual_perc wlo1} % 103 | ${color black}${upspeedgraph wlo1 24, 150 f FFA500}$color ${color black}$alignr${downspeedgraph wlo1 24, 150 000000 FFA500}$color 104 | UP:${color3} ${upspeed wlo1}/s$color ${alignr}${color3}${downspeed wlo1}/s$color :DN 105 | ${if_match "${addr enp10s0}"!="No Address"} 106 | ETH0:${addr enp10s0} ${alignr}${color3}SPD:$color${downspeedf enp10s0}kB/s 107 | ${color black}${upspeedgraph enp10s0 24, 150 000000 FFA500}$color ${color black}$alignr${downspeedgraph enp10s0 24, 150 000000 FFA500}$color 108 | UP:${color3} ${upspeed enp10s0}/s$color ${alignr}${color3}${downspeed enp10s0}/s$color :DN 109 | ${else}${endif} 110 | # 111 | ### CPU 112 | # 113 | ${color1}$stippled_hr$color 114 | ${font2}${color1}CPU ${color} ${alignr}${execi 300 grep -i 'Model name' /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 1-18} @ ${color3}${freq_g} GHz$color${font} 115 | 116 | Cores ▼ 117 | ${alignc}01 ${color3}${cpubar cpu1 6,50}$color 02 ${color3}${cpubar cpu2 6,50}$color 03 ${color3}${cpubar cpu3 6,50}$color 04 ${color3}${cpubar cpu4 6,50}$color 118 | ${alignc}05 ${color3}${cpubar cpu5 6,50}$color 06 ${color3}${cpubar cpu6 6,50}$color 07 ${color3}${cpubar cpu7 6,50}$color 08 ${color3}${cpubar cpu8 6,50}$color 119 | ${alignc}09 ${color3}${cpubar cpu9 6,50}$color 10 ${color3}${cpubar cpu10 6,50}$color 11 ${color3}${cpubar cpu11 6,50}$color 12 ${color3}${cpubar cpu12 6,50}$color 120 | ${alignc}13 ${color3}${cpubar cpu13 6,50}$color 14 ${color3}${cpubar cpu14 6,50}$color 15 ${color3}${cpubar cpu15 6,50}$color 16 ${color3}${cpubar cpu16 6,50}$color 121 | ${alignc}17 ${color3}${cpubar cpu17 6,50}$color 18 ${color3}${cpubar cpu18 6,50}$color 19 ${color3}${cpubar cpu19 6,50}$color 20 ${color3}${cpubar cpu20 6,50}$color 122 | ${alignc}21 ${color3}${cpubar cpu21 6,50}$color 22 ${color3}${cpubar cpu22 6,50}$color 23 ${color3}${cpubar cpu23 6,50}$color 24 ${color3}${cpubar cpu24 6,50}$color 123 | 124 | Usage: ${color3}${cpu cpu0}%${color} ${alignr}Fan: ${color3}${execi 10 sensors | grep 'Fan'|tr -s ' '|cut -d' ' -f3,4}${color} 125 | ${color3}${cpubar cpu0 6,155}${color} ${alignr}Temp: ${color3}${acpitemp} °C${color} 126 | $alignc${color black}${cpugraph 24,320 000000 FFA500}$color 127 | # 128 | ### GPU 129 | # 130 | 131 | # 132 | ### RAM STORAGE 133 | # 134 | ${color1}$stippled_hr$color 135 | ${font2}${color1}MEM / HDD / IO$color ${alignr}${font} 136 | 137 | ${color3}Memory$color 138 | RAM ${color3}${membar 5,100}$color ${alignr}${mem}/${memmax} 139 | ${color3}Internal Storage$color 140 | / ${color3}${fs_bar 5,100 /}$color ${alignr}${fs_used /}/${fs_size /} 141 | Home ${color3}${fs_bar 5,100 /home/}$color ${alignr}${fs_used /home/}/${fs_size /home/} 142 | 143 | # 144 | ### USAGE 145 | # 146 | ${color1}$stippled_hr$color 147 | ${color1}USAGE$color ${alignr}${color3}Uptime:${color} $uptime_short 148 | ${color3}Proc${color}${processes}${alignc} | ${color3}Running${color}${running_processes} | ${alignr}${color3}Avg:${color} $loadavg 149 | 150 | ${font3}By CPU MEM CPU% ${alignr}USER PID 151 | ${color3}${top name 1} ${top mem_res 1}${top cpu 1} $alignr${top user 1} ${top pid 1}$color 152 | ${top name 2} ${top mem_res 2}${top cpu 2} $alignr ${top user 2} ${top pid 2} 153 | ${top name 3} ${top mem_res 3}${top cpu 3} $alignr ${top user 3} ${top pid 3} 154 | By MEM MEM CPU% ${alignr}USER PID 155 | ${color3}${top_mem name 1} ${top_mem mem_res 1}${top_mem cpu 1} $alignr ${top_mem user 1} ${top_mem pid 1}$color 156 | ${top_mem name 2} ${top_mem mem_res 2}${top_mem cpu 2} $alignr ${top_mem user 2} ${top_mem pid 2} 157 | ${top_mem name 3} ${top_mem mem_res 3}${top_mem cpu 3} $alignr ${top_mem user 3} ${top_mem pid 3} 158 | By I/O MEM CPU% ${alignr}USER PID 159 | ${color3}${top_io name 1} ${top_io mem_res 1}${top_io cpu 1} $alignr ${top_io user 1} ${top_io pid 1}$color 160 | ${top_io name 2} ${top_io mem_res 2}${top_io cpu 2} $alignr ${top_io user 2} ${top_io pid 2} 161 | ${top_io name 3} ${top_io mem_res 3}${top_io cpu 3} $alignr ${top_io user 3} ${top_io pid 3}${font} 162 | ]] 163 | -------------------------------------------------------------------------------- /.config/conky/conky.conf.old: -------------------------------------------------------------------------------- 1 | -- vim: ts=4 sw=4 noet ai cindent syntax=lua 2 | --[[ 3 | Conky, a system monitor, based on torsmo 4 | 5 | Any original torsmo code is licensed under the BSD license 6 | 7 | All code written since the fork of torsmo is licensed under the GPL 8 | 9 | Please see COPYING for details 10 | 11 | Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen 12 | Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) 13 | All rights reserved. 14 | 15 | This program is free software: you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 3 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | ]] 27 | 28 | conky.config = { 29 | alignment = 'top_left', 30 | background = true, 31 | own_window = true, 32 | own_window_type = 'override', 33 | own_window_class = Conky, 34 | double_buffer = true, 35 | own_window_transparent = true, 36 | border_width = 1, 37 | cpu_avg_samples = 2, 38 | default_color = 'white', 39 | default_outline_color = 'white', 40 | default_shade_color = 'white', 41 | draw_borders = false, 42 | draw_graph_borders = true, 43 | draw_outline = false, 44 | draw_shades = false, 45 | use_xft = true, 46 | font = 'DejaVu Sans Mono:size=12', 47 | gap_x = 5, 48 | gap_y = 60, 49 | minimum_height = 5, 50 | minimum_width = 5, 51 | net_avg_samples = 2, 52 | no_buffers = true, 53 | out_to_console = false, 54 | out_to_stderr = false, 55 | extra_newline = false, 56 | own_window = true, 57 | own_window_class = 'Conky', 58 | own_window_type = 'desktop', 59 | stippled_borders = 0, 60 | update_interval = 1.0, 61 | uppercase = false, 62 | use_spacer = 'none', 63 | show_graph_scale = false, 64 | show_graph_range = false 65 | } 66 | 67 | conky.text = [[ 68 | ${scroll 16 $nodename - $sysname $kernel on $machine | } 69 | $hr 70 | ${color grey}Uptime:$color $uptime 71 | ${color grey}Frequency (in MHz):$color $freq 72 | ${color grey}Frequency (in GHz):$color $freq_g 73 | ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} 74 | ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} 75 | ${color grey}CPU Usage:$color $cpu% ${cpubar 4} 76 | ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes 77 | $hr 78 | ${color grey}File systems: 79 | / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} 80 | ${color grey}Networking: 81 | Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} 82 | $hr 83 | ${color grey}Name PID CPU% MEM% 84 | ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} 85 | ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} 86 | ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} 87 | ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} 88 | ]] 89 | -------------------------------------------------------------------------------- /.config/conky/conkyrc.working.bak: -------------------------------------------------------------------------------- 1 | -- vim: ts=4 sw=4 noet ai cindent syntax=lua 2 | --[[ 3 | Conky, a system monitor, based on torsmo 4 | 5 | Any original torsmo code is licensed under the BSD license 6 | 7 | All code written since the fork of torsmo is licensed under the GPL 8 | 9 | Please see COPYING for details 10 | 11 | Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen 12 | Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) 13 | All rights reserved. 14 | 15 | This program is free software: you can redistribute it and/or modify 16 | it under the terms of the GNU General Public License as published by 17 | the Free Software Foundation, either version 3 of the License, or 18 | (at your option) any later version. 19 | 20 | This program is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 | GNU General Public License for more details. 24 | You should have received a copy of the GNU General Public License 25 | along with this program. If not, see . 26 | ]] 27 | 28 | conky.config = { 29 | alignment = 'top_left', 30 | background = true, 31 | own_window = true, 32 | own_window_type = 'override', 33 | own_window_class = 'Conky', 34 | double_buffer = true, 35 | own_window_transparent = true, 36 | border_width = 1, 37 | cpu_avg_samples = 2, 38 | default_color = 'white', 39 | default_outline_color = 'white', 40 | default_shade_color = 'white', 41 | draw_borders = false, 42 | draw_graph_borders = true, 43 | draw_outline = false, 44 | draw_shades = false, 45 | use_xft = true, 46 | font = 'DejaVu Sans Mono:size=12', 47 | gap_x = 5, 48 | gap_y = 60, 49 | minimum_height = 5, 50 | minimum_width = 5, 51 | net_avg_samples = 2, 52 | no_buffers = true, 53 | out_to_console = false, 54 | out_to_stderr = false, 55 | extra_newline = false, 56 | stippled_borders = 0, 57 | update_interval = 1.0, 58 | uppercase = false, 59 | use_spacer = 'none', 60 | show_graph_scale = false, 61 | show_graph_range = false 62 | } 63 | 64 | conky.text = [[ 65 | ${scroll 16 $nodename - $sysname $kernel on $machine | } 66 | $hr 67 | ${color grey}Uptime:$color $uptime 68 | ${color grey}Frequency (in MHz):$color $freq 69 | ${color grey}Frequency (in GHz):$color $freq_g 70 | ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} 71 | ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} 72 | ${color grey}CPU Usage:$color $cpu% ${cpubar 4} 73 | ${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes 74 | $hr 75 | ${color grey}File systems: 76 | / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} 77 | ${color grey}Networking: 78 | Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} 79 | $hr 80 | ${color grey}Name PID CPU% MEM% 81 | ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} 82 | ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} 83 | ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} 84 | ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} 85 | ]] 86 | -------------------------------------------------------------------------------- /.config/conky/gotham.conf: -------------------------------------------------------------------------------- 1 | #Conky By Jesse Avalos See me on Eye candy Linux (Google +) for more conkys. 2 | background yes 3 | update_interval 1 4 | 5 | cpu_avg_samples 2 6 | net_avg_samples 2 7 | temperature_unit celsius 8 | 9 | double_buffer yes 10 | no_buffers yes 11 | text_buffer_size 2048 12 | alignment top_middle 13 | gap_x -50 14 | gap_y 300 15 | minimum_size 550 550 16 | maximum_width 550 17 | own_window yes 18 | own_window_type override 19 | own_window_transparent yes 20 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 21 | own_window_argb_visual yes 22 | own_window_argb_value 0 23 | 24 | border_inner_margin 0 25 | border_outer_margin 0 26 | 27 | 28 | draw_shades no 29 | draw_outline no 30 | draw_borders no 31 | draw_graph_borders no 32 | default_shade_color 112422 33 | 34 | override_utf8_locale yes 35 | use_xft yes 36 | xftfont Feena Casual:size=10 37 | xftalpha 1 38 | uppercase yes 39 | 40 | default_color 282828 41 | #E87E3C 42 | own_window_colour 000000 43 | TEXT 44 | 45 | 46 | ${font Anurati:size=75}${color 504945}${time %A}#${color yellow} 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /.config/conky/gotham.orig: -------------------------------------------------------------------------------- 1 | use_xft yes 2 | xftfont 123:size=8 3 | xftalpha 0.1 4 | update_interval 1 5 | total_run_times 0 6 | 7 | own_window yes 8 | own_window_type override 9 | background yes 10 | own_window_transparent yes 11 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 12 | own_window_colour 000000 13 | own_window_argb_visual no 14 | own_window_argb_value 0 15 | 16 | double_buffer yes 17 | #minimum_size 250 5 18 | maximum_width 600 19 | draw_shades no 20 | draw_outline no 21 | draw_borders no 22 | draw_graph_borders no 23 | default_color white 24 | default_shade_color red 25 | default_outline_color green 26 | alignment top_right 27 | gap_x 0 28 | gap_y 20 29 | no_buffers yes 30 | uppercase no 31 | cpu_avg_samples 2 32 | net_avg_samples 1 33 | override_utf8_locale yes 34 | use_spacer yes 35 | 36 | 37 | minimum_size 0 0 38 | TEXT 39 | ${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${offset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -148}${time %A}${font} 40 | ${voffset 1}${offset 12}${font Ubuntu:pixelsize=12}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}% 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /.config/conky/leftpane.conf: -------------------------------------------------------------------------------- 1 | -- vim: ts=4 sw=4 noet ai cindent syntax=lua 2 | --[[ 3 | Panel for left side of screen 4 | 5 | Hostname * Kernel * Uptime 6 | Load * IOWait (?) 7 | CPU bar * RAM bar 8 | CPU graph * RAM graph 9 | 10 | ]] 11 | 12 | conky.config = { 13 | -- i3 gaps config 14 | alignment = 'tl', 15 | background = true, 16 | own_window = true, 17 | own_window_type = 'override', 18 | own_window_class = 'Conky', 19 | own_window_transparent = true, 20 | double_buffer = true, 21 | -- Color info 22 | default_color = 'white', 23 | default_outline_color = 'white', 24 | default_shade_color = 'white', 25 | -- Draw 26 | use_xft = true, 27 | font = 'DejaVu Sans Mono:size=10', 28 | border_width = 1, 29 | draw_borders = false, 30 | draw_graph_borders = true, 31 | draw_outline = false, 32 | draw_shades = false, 33 | stippled_borders = 0, 34 | show_graph_scale = false, 35 | show_graph_range = false, 36 | extra_newline = false, 37 | uppercase = false, 38 | use_spacer = 'none', 39 | -- Size 40 | minimum_height = 5, 41 | minimum_width = 350, 42 | maximum_width = 350, 43 | gap_x = 5, 44 | gap_y = 30, 45 | -- Output 46 | no_buffers = true, 47 | out_to_console = false, 48 | out_to_stderr = false, 49 | -- Update 50 | cpu_avg_samples = 2, 51 | net_avg_samples = 2, 52 | update_interval = 1.0 53 | } 54 | 55 | conky.text = [[ 56 | $nodename ${alignc}$kernel ${alignr}$uptime 57 | $hr 58 | Load: $loadavg Procs: $processes Run: $running_processes 59 | CPU: ${cpu}% ${cpubar 10,} 60 | ${cpugraph cpu1 32,170 104e8b 0077ff -l -t} ${alignr}${cpugraph cpu2 32,170 104e8b 0077ff -l -t} 61 | RAM: $mem/$memmax $memperc% ${membar 10,} 62 | Swap: $swap/$swapmax $swapperc% ${swapbar 10,} 63 | #${memgraph 32,170 104e8b 0077ff -l -t} ${alignr}${swapgraph 32,170 10438b 0077ff -l -t} 64 | Entropy: ${entropy_avail}/${entropy_poolsize} ${entropy_bar 10,} 65 | $hr 66 | ${alignc}Public IP: ${curl wtfismyip.com/text 5} 67 | ]] 68 | 69 | -------------------------------------------------------------------------------- /.config/conky/nordcore/accu_weather/accu_weather: -------------------------------------------------------------------------------- 1 | # Create own window instead of using desktop (required in nautilus) 2 | own_window yes 3 | own_window_type override 4 | own_window_transparent yes 5 | own_window_hints undecorated,below,skip_taskbar,skip_pager 6 | 7 | # Use double buffering (reduces flicker, may not work for everyone) 8 | double_buffer yes 9 | 10 | # fiddle with window 11 | use_spacer yes 12 | use_xft yes 13 | 14 | # Update interval in seconds 15 | update_interval 3 16 | 17 | # Minimum size of text area 18 | minimum_size 200 700 19 | maximum_width 350 20 | 21 | override_utf8_locale yes 22 | 23 | # Draw shades? 24 | draw_shades yes 25 | 26 | # Text stuff 27 | draw_outline yes # amplifies text if yes 28 | draw_borders no 29 | #font freesans -12 30 | xftfont Arial:size=9 31 | uppercase no # set to yes if you want all text to be in uppercase 32 | 33 | # Stippled borders? 34 | stippled_borders 3 35 | 36 | # border margins 37 | border_margin 9 38 | 39 | # border width 40 | border_width 10 41 | 42 | # Default colors and also border colors, grey90 == #e5e5e5 43 | default_color cbcbcb 44 | 45 | own_window_colour brown 46 | own_window_transparent yes 47 | 48 | # Text alignment, other possible values are commented 49 | #alignment top_left 50 | alignment top_right 51 | #alignment bottom_left 52 | #alignment bottom_right 53 | 54 | # Gap between borders of screen and text 55 | gap_x 10 56 | gap_y 10 57 | 58 | imlib_cache_size 0 59 | # stuff after 'TEXT' will be formatted on screen 60 | 61 | TEXT 62 | ${hr 2} 63 | $alignc ${color 48bcff}PRISTINA WEATHER $color${execi 600 bash /home/altin/.fluxbox/conky/accu/Accuweather_RSS/acc_rss} 64 | ${hr 2} 65 | ${font conkyweather:size=30}${execpi 600 sed -n '2p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '1p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c1-20} 66 | ${goto 75}${execpi 600 sed -n '1p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c21-40} 67 | ${goto 75}${execpi 600 sed -n '1p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c41-60} 68 | 69 | ${execi 600 sed -n '3p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather} 70 | ${font conkyweather:size=30}${execpi 600 sed -n '5p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c1-20} 71 | ${goto 75}${execpi 600 sed -n '4p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c21-40} 72 | ${goto 75}${execpi 600 sed -n '4p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c41-60} 73 | 74 | ${execi 600 sed -n '6p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather} 75 | ${font conkyweather:size=30}${execpi 600 sed -n '8p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather}${font}${goto 75}${voffset -25}${execpi 600 sed -n '4p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c1-20} 76 | ${goto 75}${execpi 600 sed -n '7p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c21-40} 77 | ${goto 75}${execpi 600 sed -n '7p' /home/altin/.fluxbox/conky/accu/Accuweather_RSS/weather|cut -c41-60} 78 | -------------------------------------------------------------------------------- /.config/conky/nordcore/accu_weather/rss/acc_rss: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #function: test_image 4 | test_image () { 5 | case $1 in 6 | 1|01) 7 | echo a 8 | ;; 9 | 2|02) 10 | echo b 11 | ;; 12 | 3|03) 13 | echo c 14 | ;; 15 | 4|04) 16 | echo c 17 | ;; 18 | 5|05) 19 | echo c 20 | ;; 21 | 6|06) 22 | echo d 23 | ;; 24 | 7|07) 25 | echo e 26 | ;; 27 | 8|08) 28 | echo e 29 | ;; 30 | 11) 31 | echo 0 32 | ;; 33 | 12) 34 | echo h 35 | ;; 36 | 13|14) 37 | echo g 38 | ;; 39 | 15) 40 | echo l 41 | ;; 42 | 16|17) 43 | echo k 44 | ;; 45 | 18|26) 46 | echo i 47 | ;; 48 | 19) 49 | echo p 50 | ;; 51 | 20|21|23) 52 | echo o 53 | ;; 54 | 22) 55 | echo r 56 | ;; 57 | 24|31) 58 | echo E 59 | ;; 60 | 25) 61 | echo u 62 | ;; 63 | 29) 64 | echo v 65 | ;; 66 | 30) 67 | echo 5 68 | ;; 69 | 32) 70 | echo 6 71 | ;; 72 | 33) 73 | echo A 74 | ;; 75 | 34|36|37) 76 | echo B 77 | ;; 78 | 35|38) 79 | echo C 80 | ;; 81 | 39|40) 82 | echo G 83 | ;; 84 | 41|42) 85 | echo K 86 | ;; 87 | 43|44) 88 | echo O 89 | ;; 90 | esac 91 | } 92 | 93 | #put your accuweather rss address here 94 | address="http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|XK|298740|PRISTINA" 95 | 96 | killall wget 97 | wget -O ./weather_raw $address 98 | 99 | 100 | if [[ -s ./weather_raw ]]; then 101 | 102 | egrep 'Currently|Forecast<\/title>|_31x31.gif' ./weather_raw > ./weather 103 | sed -i '/AccuWeather\|Currently in/d' ./weather 104 | sed -i -e 's/^[ \t]*//g' -e 's/\|<\/title>\|<description>\|<\/description>//g' ./weather 105 | sed -i -e 's/<img src="/\n/g' ./weather 106 | sed -i '/^$/d' ./weather 107 | sed -i -e 's/_31x31.*$//g' -e 's/^.*\/icons\///g' ./weather 108 | sed -i -e '1s/.$//' -e '3s/.$//' -e '6s/.$//' ./weather 109 | for (( i=2; i<=8; i+=3 )) 110 | do 111 | im=$(sed -n ${i}p ./weather) 112 | sed -i $i"s/^.*$/$(test_image $im)/" ./weather 113 | done 114 | 115 | fi 116 | -------------------------------------------------------------------------------- /.config/conky/nordcore/accu_weather/rss/weather: -------------------------------------------------------------------------------- 1 | Currently: Partly Sunny: 25C 2 | c 3 | 7/22/2012 Forecast 4 | High: 29 C Low: 13 C Some sun, a t-storm; cooler 5 | k 6 | 7/23/2012 Forecast 7 | High: 28 C Low: 14 C Variable clouds with t-storms 8 | k 9 | -------------------------------------------------------------------------------- /.config/conky/nordcore/accu_weather/rss/weather_raw: -------------------------------------------------------------------------------- 1 | <?xml version = "1.0"?> 2 | <rss version="2.0"> 3 | <channel> 4 | <title>Pristina, XK - AccuWeather.com Forecast 5 | http://www.accuweather.com/en/xk/pristina/298740/%pagename%/298740 6 | 7 | AccuWeather.com Forecast & Current Conditions 8 | 60 9 | Copyright 2012, AccuWeather, Inc., All rights reserved. For personal use only. 10 | Sun, 22 Jul 2012 09:38:43 GMT 11 | en-us 12 | 13 | Pristina, XK - AccuWeather.com Forecast 14 | /en/xk/pristina/298740/weather-forecast/298740 15 | 16 | AccuWeather.com The Best Weather on the Web! 17 | http://vortex.accuweather.com/adc2004/pub/images/logos/adc_logo_187.gif 18 | 144 19 | 19 20 | 21 | 22 | Currently: Partly Sunny: 25C 23 | http://www.accuweather.com/en/xk/pristina/298740/weather-forecast/298740 24 | http://www.accuweather.com/en/xk/pristina/298740/weather-forecast/298740 25 | 26 | Currently in Pristina, XK: 25 °C and Partly Sunny 27 | <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/03_31x31.gif"> 28 | 29 | 30 | Sun, 22 Jul 2012 09:38:43 GMT 31 | 32 | 33 | 34 | 7/22/2012 Forecast 35 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=1 36 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=1 37 | High: 29 C Low: 13 C Some sun, a t-storm; cooler <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/17_31x31.gif" > 38 | Sun, 22 Jul 2012 09:38:43 GMT 39 | 40 | 41 | 42 | 7/23/2012 Forecast 43 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=2 44 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=2 45 | High: 28 C Low: 14 C Variable clouds with t-storms <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/16_31x31.gif" > 46 | Sun, 22 Jul 2012 09:38:43 GMT 47 | 48 | 49 | The AccuWeather.com RSS Center 50 | To discover additional weather feeds, visit the AccuWeather.com RSS Center at http://www.accuweather.com/en/downloads 51 | http://www.accuweather.com/en/downloads 52 | http://www.accuweather.com/en/downloads 53 | Sun, 22 Jul 2012 09:38:43 GMT 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /.config/conky/nordcore/conkyrc2core: -------------------------------------------------------------------------------- 1 | conky.config = { 2 | -- Conky settings # 3 | background = false, 4 | update_interval = 1, 5 | 6 | cpu_avg_samples = 2, 7 | net_avg_samples = 2, 8 | 9 | override_utf8_locale = true, 10 | 11 | double_buffer = true, 12 | no_buffers = true, 13 | 14 | text_buffer_size = 2048, 15 | --imlib_cache_size 0 16 | 17 | 18 | -- Window specifications # 19 | own_window = true, 20 | own_window_type = 'override', 21 | own_window_transparent = true, 22 | own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', 23 | 24 | border_inner_margin = 0, 25 | border_outer_margin = 5, 26 | 27 | minimum_width = 280, minimum_height = 1080, 28 | maximum_width = 520, minimum_height = 1080, 29 | 30 | alignment = 'middle_right', 31 | gap_x = 10, 32 | gap_y = -80, 33 | 34 | -- Graphics settings # 35 | draw_shades = false, 36 | draw_outline = false, 37 | draw_borders = false, 38 | draw_graph_borders = true, 39 | 40 | -- Text settings # 41 | use_xft = true, 42 | font = 'Roboto:style=Medium:size=10', 43 | xftalpha = 0.5, 44 | 45 | uppercase = false, 46 | 47 | -- temperature_unit = 'fahrenheit', 48 | temperature_unit = 'celsius', 49 | 50 | -- default_color = 'fbf1c7', 51 | -- color0 = 'fbf1c7', 52 | -- color1 = 'fbf1c7', 53 | default_color = 'fbf1c7', 54 | color0 = 'fbf1c7', 55 | color1 = 'fbf1c7', 56 | 57 | 58 | -- network templates 59 | if_up_strictness = 'address', 60 | 61 | template0 = [[${color1}\1: $color$alignr${addr \1} 62 | ${color1}Current: $color${alignr}${execi 10 test -e /sys/class/net/\1 && /sbin/iwconfig \1 | awk '/Bit Rate=/ { sub(/Rate=/,"", $2); print $2 }'} Mbits/sec]], 63 | 64 | template1 = [[ 65 | ${color1}\1: $color$alignr${addr \1}\n]], 66 | 67 | template2 = [[${color1}Down: $color${downspeed \1} k/s ${alignr}${color1}Up:$color ${upspeed \1} k/s 68 | ${downspeedgraph \1 30,120 000000 88c0d0} ${alignr}${upspeedgraph \1 30,120 000000 88c0d0}$color 69 | ${color1}Total:$color ${totaldown \1} ${alignr}${color1}\1 ${alignr}${color1}Total:$color ${totalup \1}]], 70 | 71 | template4 = 'ens33', 72 | template5 = 'eth1', 73 | template6 = 'wlan0', 74 | template7 = 'wlan1', 75 | 76 | 77 | -- wheather templates 78 | 79 | template8 = '~/.conky/nordcore/weather', 80 | template9 = '~/.conky/nordcore/weather_raw', 81 | 82 | 83 | }; 84 | 85 | -- fluxbox adjustment`` 86 | return_code = os.execute('pidof -q fluxbox') 87 | if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or 88 | _VERSION ~= 'Lua 5.1' and return_code then 89 | conky.config.own_window_transparent = true 90 | conky.config.own_window_argb_visual = false 91 | end 92 | 93 | conky.text = [[ 94 | #---------------------------------------------------------------------------------------------------------------------------------------- 95 | $font${color1}User:$color${alignr}$font$USER 96 | # Time and date 97 | #---------------------------------------------------------------------------------------------------------------------------------------- 98 | #---------------------------------------------------------------------------------------------------------------------------------------- 99 | # Battery Circle 100 | #---------------------------------------------------------------------------------------------------------------------------------------- 101 | #---------------------------------------------------------------------------------------------------------------------------------------- 102 | # Weather 103 | #---------------------------------------------------------------------------------------------------------------------------------------- 104 | 105 | # DISK/RAM/SWAP usage 106 | #---------------------------------------------------------------------------------------------------------------------------------------- 107 | ${color FFFFFF}${goto 7}${voffset 32}${fs_used_perc /}% 108 | ${color1}${goto 7}DISK 109 | ${color FFFFFF}${goto 102}${voffset -36}${memperc}% 110 | ${color1}${goto 102}RAM 111 | ${color FFFFFF}${goto 192}${voffset -37}${swapperc}% 112 | ${color1}${goto 191}SWAP 113 | 114 | ${color1}Root Directory: ${alignr}$color${fs_used /} / ${fs_size /}(${fs_used_perc}%) 115 | ${color1}${fs_bar 30 /} 116 | ${color1}Home Directory : ${alignr}$color${fs_used /home} / ${fs_size /home}(${fs_used_perc}%) 117 | ${color1}${fs_bar 30 /home} 118 | #${color1}CPU 1${alignr}$color${cpu cpu1 \1}% 119 | #${cpugraph cpu1 \1 000000 88c0d0} 120 | #${color1}CPU 2${alignr}$color${cpu cpu2 \1}% 121 | #${cpugraph cpu2 \1 000000 88c0d0} 122 | #---------------------------------------------------------------------------------------------------------------------------------------- 123 | # Running processes 124 | #---------------------------------------------------------------------------------------------------------------------------------------- 125 | ${color1}${voffset 5}NAME${goto 122}PID${goto 163}CPU%${goto 210}MEM%$color${voffset 5} 126 | ${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1} 127 | ${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2} 128 | ${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3} 129 | ${top name 4}${goto 115}${top pid 3}${goto 160}${top cpu 4}${goto 205}${top mem 4} 130 | ${top name 5}${goto 115}${top pid 3}${goto 160}${top cpu 5}${goto 205}${top mem 5} 131 | ${top name 6}${goto 115}${top pid 6}${goto 160}${top cpu 6}${goto 205}${top mem 6} 132 | ${top name 7}${goto 115}${top pid 7}${goto 160}${top cpu 7}${goto 205}${top mem 7} 133 | ${top name 8}${goto 115}${top pid 8}${goto 160}${top cpu 8}${goto 205}${top mem 8} 134 | ${top name 9}${goto 115}${top pid 9}${goto 160}${top cpu 9}${goto 205}${top mem 9} 135 | ${top name 10}${goto 115}${top pid 10}${goto 160}${top cpu 10}${goto 205}${top mem 10} 136 | #---------------------------------------------------------------------------------------------------------------------------------------- 137 | # Computer info 138 | #---------------------------------------------------------------------------------------------------------------------------------------- 139 | ${color1}${voffset 2}${hr 1}${voffset 5} 140 | ${color1}Hostname:$color${alignr}${nodename} 141 | ${color1}OS:$color${alignr}${exec cat /etc/issue}${color1}Machine:$color${alignr}${machine} 142 | ${color1}Kernel:$color${alignr}${kernel} 143 | ]]; 144 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /.config/conky/nordcore/conkyrc2core.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/conky/nordcore/conkyrc2core.png -------------------------------------------------------------------------------- /.config/conky/nordcore/fonts/AvantGarde_LT_Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/conky/nordcore/fonts/AvantGarde_LT_Medium.ttf -------------------------------------------------------------------------------- /.config/conky/nordcore/fonts/Radio_Space.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/conky/nordcore/fonts/Radio_Space.ttf -------------------------------------------------------------------------------- /.config/conky/nordcore/source.txt: -------------------------------------------------------------------------------- 1 | https://github.com/MX-Linux/mx-conky-data/tree/master/MX-CoreBlue 2 | -------------------------------------------------------------------------------- /.config/conky/nordcore/start_conky.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sleep 10 3 | conky -c ~/.conky/nordcore/conkyrc2core 4 | -------------------------------------------------------------------------------- /.config/conky/nordcore/start_conky.sh.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Exec=/home/linuxscoop/.conky/nordcore/start_conky.sh 4 | Hidden=false 5 | NoDisplay=false 6 | X-GNOME-Autostart-enabled=true 7 | Name[en_US]=conky 8 | Name=conky 9 | Comment[en_US]=conky 10 | Comment=conky 11 | -------------------------------------------------------------------------------- /.config/conky/nordcore/weather: -------------------------------------------------------------------------------- 1 | Currently: Partly Sunny: 25C 2 | c 3 | 7/5/2013 Forecast 4 | High: 27 C Low: 13 C A couple of thunderstorms 5 | k 6 | 7/6/2013 Forecast 7 | High: 24 C Low: 14 C Rain and a thunderstorm 8 | i 9 | -------------------------------------------------------------------------------- /.config/conky/nordcore/weather_raw: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Pristina, XK - AccuWeather.com Forecast 5 | http://www.accuweather.com/en/xk/pristina/298740/%pagename%/298740 6 | 7 | AccuWeather.com Forecast & Current Conditions 8 | 60 9 | Copyright 2013, AccuWeather, Inc., All rights reserved. For personal use only. 10 | Fri, 05 Jul 2013 09:12:00 GMT 11 | en-us 12 | 13 | Pristina, XK - AccuWeather.com Forecast 14 | /en/xk/pristina/298740/weather-forecast/298740 15 | 16 | AccuWeather.com The Best Weather on the Web! 17 | http://vortex.accuweather.com/adc2004/pub/images/logos/adc_logo_187.gif 18 | 144 19 | 19 20 | 21 | 22 | Currently: Partly Sunny: 25C 23 | http://www.accuweather.com/en/xk/pristina/298740/weather-forecast/298740 24 | http://www.accuweather.com/en/xk/pristina/298740/weather-forecast/298740 25 | 26 | Currently in Pristina, XK: 25 °C and Partly Sunny 27 | <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/03_31x31.gif"> 28 | 29 | 30 | Fri, 05 Jul 2013 09:12:00 GMT 31 | 32 | 33 | 34 | 7/5/2013 Forecast 35 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=1 36 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=1 37 | High: 27 C Low: 13 C A couple of thunderstorms <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/17_31x31.gif" > 38 | Fri, 05 Jul 2013 09:12:00 GMT 39 | 40 | 41 | 42 | 7/6/2013 Forecast 43 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=2 44 | http://www.accuweather.com/en/xk/pristina/298740/daily-weather-forecast/298740?day=2 45 | High: 24 C Low: 14 C Rain and a thunderstorm <img src="http://vortex.accuweather.com/phoenix2/images/common/icons/18_31x31.gif" > 46 | Fri, 05 Jul 2013 09:12:00 GMT 47 | 48 | 49 | The AccuWeather.com RSS Center 50 | To discover additional weather feeds, visit the AccuWeather.com RSS Center at http://www.accuweather.com/en/downloads 51 | http://www.accuweather.com/en/downloads 52 | http://www.accuweather.com/en/downloads 53 | Fri, 05 Jul 2013 09:12:00 GMT 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /.config/conky/scripts/druidcal.sh: -------------------------------------------------------------------------------- 1 | /home/jphoenix/bin/druidcal -------------------------------------------------------------------------------- /.config/conky/scripts/stardate.sh: -------------------------------------------------------------------------------- 1 | /home/jphoenix/bin/stardate -------------------------------------------------------------------------------- /.config/dunst/base16-nord.dunstrc: -------------------------------------------------------------------------------- 1 | [global] 2 | font = "Hack 12" 3 | markup = full 4 | format = "%s\n%b" 5 | sort = yes 6 | indicate_hidden = yes 7 | alignment = center 8 | stack_duplicates = true 9 | bounce_freq = 0 10 | show_age_threshold = 60 11 | word_wrap = yes 12 | ignore_newline = no 13 | geometry = "200x5-6+30" 14 | browser = /usr/bin/firefox -new-tab 15 | transparency = 0 16 | idle_threshold = 120 17 | monitor = 0 18 | follow = mouse 19 | sticky_history = yes 20 | line_height = 0 21 | separator_height = 2 22 | padding = 8 23 | horizontal_padding = 8 24 | separator_color = "#585858" 25 | startup_notification = false 26 | # https://github.com/knopwob/dunst/issues/26#issuecomment-36159395 27 | #icon_position = left 28 | frame_width = 1 29 | icon_folders = /usr/share/icons/breeze/apps/48/:/usr/share/icons/breeze/actions/48/:/usr/share/icons/breeze/places/48/:/usr/share/icons/breeze/status/48/ 30 | frame_color = "#282828" 31 | 32 | [shortcuts] 33 | close = ctrl+space 34 | close_all = ctrl+shift+space 35 | history = ctrl+grave 36 | context = ctrl+shift+period 37 | 38 | [urgency_low] 39 | background = "#1D282828" 40 | foreground = "#ebdbb2" 41 | timeout = 5 42 | 43 | [urgency_normal] 44 | background = "#1D282828" 45 | foreground = "#ebdbb2" 46 | timeout = 10 47 | 48 | [urgency_critical] 49 | background = "#1D282828" 50 | foreground = "#ebdbb2" 51 | timeout = 20 52 | -------------------------------------------------------------------------------- /.config/glava/bars: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//bars -------------------------------------------------------------------------------- /.config/glava/bars.glsl: -------------------------------------------------------------------------------- 1 | 2 | /* Center line thickness (pixels) */ 3 | #define C_LINE 1 4 | /* Width (in pixels) of each bar */ 5 | #define BAR_WIDTH 18 6 | /* Width (in pixels) of each bar gap */ 7 | #define BAR_GAP 13 8 | /* Outline color */ 9 | #define BAR_OUTLINE #504945 10 | /* Outline width (in pixels, set to 0 to disable outline drawing) */ 11 | #define BAR_OUTLINE_WIDTH 6 12 | /* Amplify magnitude of the results each bar displays */ 13 | #define AMPLIFY 150 14 | /* Whether the current settings use the alpha channel; 15 | enabling this is required for alpha to function 16 | correctly on X11 with `"native"` transparency. */ 17 | #define USE_ALPHA 0 18 | /* How strong the gradient changes */ 19 | #define GRADIENT_POWER 60 20 | /* Bar color changes with height */ 21 | #define GRADIENT (d / GRADIENT_POWER + 1) 22 | /* Bar color */ 23 | #define COLOR (#1d2021) 24 | /* Direction that the bars are facing, 0 for inward, 1 for outward */ 25 | #define DIRECTION 0 26 | /* Whether to switch left/right audio buffers */ 27 | #define INVERT 0 28 | /* Whether to flip the output vertically */ 29 | #define FLIP 0 30 | /* Whether to mirror output along `Y = X`, causing output to render on the left side of the window */ 31 | /* Use with `FLIP 1` to render on the right side */ 32 | #define MIRROR_YX 0 33 | 34 | -------------------------------------------------------------------------------- /.config/glava/circle: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//circle -------------------------------------------------------------------------------- /.config/glava/circle.glsl: -------------------------------------------------------------------------------- 1 | /* center radius (pixels) */ 2 | #define C_RADIUS 128 3 | /* center line thickness (pixels) */ 4 | #define C_LINE 1.5 5 | /* outline color */ 6 | #define OUTLINE #333333 7 | /* Amplify magnitude of the results each bar displays */ 8 | #define AMPLIFY 150 9 | /* Angle (in radians) for how much to rotate the visualizer */ 10 | #define ROTATE (PI / 2) 11 | /* Whether to switch left/right audio buffers */ 12 | #define INVERT 0 13 | /* Whether to fill in the space between the line and inner circle */ 14 | #define C_FILL 0 15 | /* Whether to apply a post-processing image smoothing effect 16 | 1 to enable, 0 to disable. Only works with `xroot` transparency, 17 | and improves performance if disabled. */ 18 | #define C_SMOOTH 1 19 | 20 | /* Gravity step, overrude frin `smooth_parameters.glsl` */ 21 | #request setgravitystep 6.0 22 | 23 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 24 | #request setsmoothfactor 0.01 25 | -------------------------------------------------------------------------------- /.config/glava/env_KWin.glsl: -------------------------------------------------------------------------------- 1 | #request setdecorated false 2 | #request setxwintype "normal" 3 | #request addxwinstate "below" 4 | #request addxwinstate "skip_taskbar" 5 | #request addxwinstate "skip_pager" 6 | #request addxwinstate "pinned" 7 | #request setclickthrough true 8 | 9 | -------------------------------------------------------------------------------- /.config/glava/env_Openbox.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | #request addxwinstate "pinned" 3 | -------------------------------------------------------------------------------- /.config/glava/env_Xfwm4.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | #request addxwinstate "pinned" 3 | #request addxwinstate "below" 4 | -------------------------------------------------------------------------------- /.config/glava/env_awesome.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "!-" 2 | -------------------------------------------------------------------------------- /.config/glava/env_default.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "desktop" 2 | -------------------------------------------------------------------------------- /.config/glava/env_i3.glsl: -------------------------------------------------------------------------------- 1 | #request setxwintype "!-" 2 | -------------------------------------------------------------------------------- /.config/glava/graph: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//graph -------------------------------------------------------------------------------- /.config/glava/graph.glsl: -------------------------------------------------------------------------------- 1 | 2 | /* Vertical scale, larger values will amplify output */ 3 | #define VSCALE 300 4 | /* Rendering direction, either -1 (outwards) or 1 (inwards). */ 5 | #define DIRECTION 1 6 | 7 | /* Color gradient scale, (optionally) used in `COLOR` macro */ 8 | #define GRADIENT_SCALE 75 9 | /* Color definition. By default this is a gradient formed by mixing two colors. 10 | `pos` represents the pixel position relative to the visualizer baseline. */ 11 | #define COLOR mix(#802A2A, #4F4F92, clamp(pos / GRADIENT_SCALE, 0, 1)) 12 | /* 1 to draw outline, 0 to disable */ 13 | #define DRAW_OUTLINE 0 14 | /* 1 to draw edge highlight, 0 to disable */ 15 | #define DRAW_HIGHLIGHT 1 16 | /* Whether to anti-alias the border of the graph, creating a smoother curve. 17 | This may have a small impact on performance. 18 | Note: requires `xroot` or `none` opacity to be set */ 19 | #define ANTI_ALIAS 0 20 | /* outline color */ 21 | #define OUTLINE #262626 22 | /* 1 to join the two channels together in the middle, 0 to clamp both down to zero */ 23 | #define JOIN_CHANNELS 0 24 | /* 1 to invert (vertically), 0 otherwise */ 25 | #define INVERT 0 26 | 27 | /* Gravity step, overrude from `smooth_parameters.glsl` */ 28 | #request setgravitystep 2.4 29 | 30 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 31 | #request setsmoothfactor 0.015 32 | -------------------------------------------------------------------------------- /.config/glava/radial: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//radial -------------------------------------------------------------------------------- /.config/glava/radial.glsl: -------------------------------------------------------------------------------- 1 | 2 | /* center radius (pixels) */ 3 | #define C_RADIUS 128 4 | /* center line thickness (pixels) */ 5 | #define C_LINE 2 6 | /* outline color */ 7 | #define OUTLINE #333333 8 | /* number of bars (use even values for best results) */ 9 | #define NBARS 180 10 | /* width (in pixels) of each bar*/ 11 | #define BAR_WIDTH 3.5 12 | /* outline color */ 13 | #define BAR_OUTLINE OUTLINE 14 | /* outline width (in pixels, set to 0 to disable outline drawing) */ 15 | #define BAR_OUTLINE_WIDTH 0 16 | /* Amplify magnitude of the results each bar displays */ 17 | #define AMPLIFY 300 18 | /* Bar color */ 19 | #define COLOR (#cc3333 * ((d / 40) + 1)) 20 | /* Angle (in radians) for how much to rotate the visualizer */ 21 | #define ROTATE (PI / 2) 22 | /* Whether to switch left/right audio buffers */ 23 | #define INVERT 0 24 | /* Aliasing factors. Higher values mean more defined and jagged lines. 25 | Note: aliasing does not have a notable impact on performance, but requires 26 | `xroot` transparency to be enabled since it relies on alpha blending with 27 | the background. */ 28 | #define BAR_ALIAS_FACTOR 1.2 29 | #define C_ALIAS_FACTOR 1.8 30 | /* Offset (Y) of the visualization */ 31 | #define CENTER_OFFSET_Y 0 32 | /* Offset (X) of the visualization */ 33 | #define CENTER_OFFSET_X 0 34 | 35 | /* Gravity step, override from `smooth_parameters.glsl` */ 36 | #request setgravitystep 5.0 37 | 38 | /* Smoothing factor, override from `smooth_parameters.glsl` */ 39 | #request setsmoothfactor 0.02 40 | -------------------------------------------------------------------------------- /.config/glava/smooth_parameters.glsl: -------------------------------------------------------------------------------- 1 | 2 | /* Settings for smoothing functions and transformations commonly 3 | used to display FFT output. 4 | 5 | IMPORTANT: THESE VALUES CAN BE OVERRIDDEN IN MODULE CONFIG 6 | FILES, IF CHANGING VALUES HERE DOES NOT WORK, CHECK 7 | TO MAKE SURE THEY ARE NOT BEING SET ELSEWHERE. 8 | */ 9 | 10 | /* The type of formula to use for weighting values when smoothing. 11 | Possible values: 12 | 13 | - circular heavily rounded points 14 | - sinusoidal rounded at both low and high weighted values 15 | like a sine wave 16 | - linear not rounded at all; linear distance 17 | */ 18 | #define ROUND_FORMULA sinusoidal 19 | 20 | /* The sampling mode for processing raw FFT input: 21 | 22 | - average averages all the inputs in the sample range for 23 | a given point. Produces smooth output, but peaks 24 | are not well represented 25 | - maximum obtains the best value from the closest peak in 26 | the sample range. Very accurate peaks, but 27 | output is jagged and sporadic. 28 | - hybrid uses the results from both `average` and `maximum` 29 | with the weight provided in `SAMPLE_HYBRID_WEIGHT` */ 30 | #define SAMPLE_MODE average 31 | /* Weight should be provided in the range (0, 1). Higher values favour 32 | averaged results. `hybrid` mode only. */ 33 | #define SAMPLE_HYBRID_WEIGHT 0.65 34 | 35 | /* Factor used to scale frequencies. Lower values allows lower 36 | frequencies to occupy more space. */ 37 | #define SAMPLE_SCALE 8 38 | 39 | /* The frequency range to sample. 1.0 would be the entire FFT output, 40 | and lower values reduce the displayed frequencies in a log-like 41 | scale. */ 42 | #define SAMPLE_RANGE 0.9 43 | 44 | /* Factor for how to scale higher frequencies. Used in a linear equation 45 | which is multiplied by the result of the fft transformation. */ 46 | #request setfftscale 10.2 47 | 48 | /* Cutoff for the bass end of the audio data when scaling frequencies. 49 | Higher values cause more of the bass frequencies to be skipped when 50 | scaling. */ 51 | #request setfftcutoff 0.3 52 | 53 | /* How many frames to queue and run through the average function. 54 | Increasing this value will create latency between the audio and the 55 | animation, but will make for much smoother results. */ 56 | #request setavgframes 6 57 | 58 | /* Whether to window frames ran through the average function (new & old 59 | frames are weighted less). This massively helps smoothing out 60 | spontaneous values in the animation. */ 61 | #request setavgwindow true 62 | 63 | /* Gravity step, higher values means faster drops. The step is applied 64 | in a rate independant method like so: 65 | 66 | val -= (gravitystep) * (seconds per update) */ 67 | #request setgravitystep 4.2 68 | 69 | /* Smoothing factor. Larger values mean more smoothing in the output, 70 | however high values can be expensive to compute. Values are in 71 | normalized width: [0.0, 1.0) */ 72 | #request setsmoothfactor 0.025 73 | 74 | /* Whether to use a separate pass for audio data while smoothing. On 75 | most hardware, this will improve performance, but involves doing a 76 | separate render step for each audio texture and will add some driver 77 | (CPU) overhead. */ 78 | #request setsmoothpass true 79 | -------------------------------------------------------------------------------- /.config/glava/util: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//util -------------------------------------------------------------------------------- /.config/glava/wave: -------------------------------------------------------------------------------- 1 | /etc/xdg/glava//wave -------------------------------------------------------------------------------- /.config/glava/wave.glsl: -------------------------------------------------------------------------------- 1 | /* min (vertical) line thickness */ 2 | #define MIN_THICKNESS 1 3 | 4 | /* max (vertical) line thickness */ 5 | #define MAX_THICKNESS 6 6 | 7 | /* base color to use, distance from center will multiply the RGB components */ 8 | #define BASE_COLOR vec4(0.7, 0.2, 0.45, 1) 9 | 10 | /* amplitude */ 11 | #define AMPLIFY 500 12 | 13 | /* outline color */ 14 | #define OUTLINE vec4(0.15, 0.15, 0.15, 1) 15 | -------------------------------------------------------------------------------- /.config/i3/Blocks/bandwidth: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Source: http://www.onlamp.com/pub/a/linux/2000/11/16/LinuxAdmin.html 3 | 4 | INSTANCE="${BLOCK_INSTANCE}" 5 | # If you don't like you can use any other IP 6 | INTERFACE="$(ip route get 8.8.8.8 | grep -Po '(?<=(dev )).*(?= src)')" 7 | 8 | if [[ "${INSTANCE}" = "" ]]; then 9 | INSTANCE="${INTERFACE};both" 10 | fi 11 | 12 | DISPLAY=$(echo "${INSTANCE}" | awk -F ';' '{print $2}') 13 | INSTANCE=$(echo "${INSTANCE}" | awk -F ';' '{print $1}') 14 | 15 | if [[ "${DISPLAY}" = "" ]]; then 16 | DISPLAY="both" 17 | fi 18 | 19 | ONE_KB=1024 20 | ONE_MB=$(echo "${ONE_KB}*1024" | bc -l) 21 | TEN_MB=$(echo "${ONE_MB}*10" | bc -l) 22 | OHD_MB=$(echo "${TEN_MB}*10" | bc -l) 23 | 24 | URGENT_VALUE="${ONE_MB}" 25 | 26 | PREV_IN=0 27 | PREV_OUT=0 28 | 29 | PREV_FILE="/tmp/.bandwidth" 30 | 31 | if [[ -f "${PREV_FILE}" ]]; then 32 | PREV_CONT=$(cat "${PREV_FILE}") 33 | PREV_IN=$(echo "${PREV_CONT}" | head -n 1) 34 | PREV_OUT=$(echo "${PREV_CONT}" | tail -n 1) 35 | fi 36 | 37 | BANDWIDTH=$(grep "${INSTANCE}" /proc/net/dev | awk -F: '{print $2}' | awk '{print $1" "$9}') 38 | 39 | if [[ "${BANDWIDTH}" = "" ]]; then 40 | exit 41 | fi 42 | 43 | BYTES_IN=$(echo "${BANDWIDTH}" | awk -F ' ' '{print $1}') 44 | BYTES_OUT=$(echo "${BANDWIDTH}" | awk -F ' ' '{print $2}') 45 | 46 | function FormatNumber() { 47 | if [[ "${1}" -ge "${OHD_MB}" ]]; then 48 | printf "%03d" $(echo "scale=0;${1}/${ONE_MB}" | bc -l) 49 | echo "m" 50 | elif [[ "${1}" -ge "${TEN_MB}" ]]; then 51 | printf "%03d" $(echo "scale=1;${1}/${ONE_MB}" | bc -l) 52 | echo "m" 53 | elif [[ "${1}" -ge "${ONE_MB}" ]]; then 54 | printf "%03d" $(echo "scale=2;${1}/${ONE_MB}" | bc -l) 55 | echo "m" 56 | elif [[ "${1}" -ge "${ONE_KB}" ]]; then 57 | printf "%03d" $(echo "scale=0;${1}/${ONE_KB}" | bc -l) 58 | echo "k" 59 | else 60 | printf "%03d" "$1" 61 | echo "b" 62 | fi 63 | } 64 | 65 | if [[ "${PREV_IN}" != "" ]] && [[ "${PREV_OUT}" != "" ]]; then 66 | # Calculate the CPU usage since we last checked. 67 | DIFF_IN=$(echo "scale=0;${BYTES_IN} - ${PREV_IN}" | bc -l) 68 | DIFF_OUT=$(echo "scale=0;${BYTES_OUT} - ${PREV_OUT}" | bc -l) 69 | DIFF_TOTAL=0 70 | 71 | USAGE_IN=$(FormatNumber "${DIFF_IN}") 72 | USAGE_OUT=$(FormatNumber "${DIFF_OUT}") 73 | 74 | if [[ "${DISPLAY}" = "both" ]]; then 75 | echo "${USAGE_IN} : ${USAGE_OUT}" 76 | echo "${USAGE_IN} : ${USAGE_OUT}" 77 | echo "" 78 | DIFF_TOTAL=$((DIFF_TOTAL+DIFF_IN)) 79 | DIFF_TOTAL=$((DIFF_TOTAL+DIFF_OUT)) 80 | elif [[ "${DISPLAY}" = "in" ]]; then 81 | echo "${USAGE_IN}" 82 | echo "${USAGE_IN}" 83 | echo "" 84 | DIFF_TOTAL=$((DIFF_TOTAL+DIFF_IN)) 85 | elif [[ "${DISPLAY}" = "out" ]]; then 86 | echo "${USAGE_OUT}" 87 | echo "${USAGE_OUT}" 88 | echo "" 89 | DIFF_TOTAL=$((DIFF_TOTAL+DIFF_OUT)) 90 | fi 91 | else 92 | echo "?" 93 | echo "?" 94 | echo "" 95 | fi 96 | 97 | # Remember the total and idle CPU times for the next check. 98 | echo "${BYTES_IN}" > "${PREV_FILE}" 99 | echo "${BYTES_OUT}" >> "${PREV_FILE}" 100 | 101 | if [[ "${DIFF_TOTAL}" -ge "${URGENT_VALUE}" ]]; then 102 | exit 0 103 | fi 104 | -------------------------------------------------------------------------------- /.config/i3/Blocks/battery: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BATTERY=0 4 | BATTERY_INFO=$(acpi -b | grep "Battery ${BATTERY}") 5 | BATTERY_STATE=$(echo "${BATTERY_INFO}" | grep -wo "Full\|Charging\|Not") 6 | BATTERY_POWER=$(echo "${BATTERY_INFO}" | grep -o '[0-9]\+%' | tr -d '%') 7 | 8 | URGENT_VALUE=10 9 | 10 | if [[ "${BATTERY_STATE}" = "Charging" ]]; then 11 | echo "${BATTERY_POWER}%+" 12 | echo "${BATTERY_POWER}%+" 13 | echo "" 14 | elif [[ "${BATTERY_STATE}" = "Not" ]]; then 15 | echo "${BATTERY_POWER}%-" 16 | echo "${BATTERY_POWER}%-" 17 | echo "" 18 | else 19 | echo "${BATTERY_POWER}%" 20 | echo "${BATTERY_POWER}%" 21 | echo "" 22 | fi 23 | 24 | if [[ "${BATTERY_POWER}" -le "${URGENT_VALUE}" ]]; then 25 | exit 0 26 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/brightness: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # One of the following: xrandr, xbacklight, kernel 4 | METHOD="xbacklight" 5 | 6 | # Left click 7 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 8 | ~/.Scripts/ChangeWallpapers.sh 9 | #elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 10 | # ~/.Scripts/ChangeWallpapers.sh 11 | #elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then 12 | # xbacklight -dec 10 13 | elif [[ "${BLOCK_BUTTON}" -eq 4 ]]; then 14 | xbacklight -inc 5 15 | elif [[ "${BLOCK_BUTTON}" -eq 5 ]]; then 16 | xbacklight -dec 5 17 | fi 18 | 19 | URGENT_VALUE=10 20 | 21 | if [[ "${METHOD}" = "xrandr" ]]; then 22 | device="${BLOCK_INSTANCE:-primary}" 23 | xrandrOutput=$(xrandr --verbose) 24 | 25 | if [[ "${device}" = "primary" ]]; then 26 | device=$(echo "${xrandrOutput}" | grep 'primary' | head -n 1 | awk -F ' ' '{print $1}') 27 | fi 28 | 29 | curBrightness=$(echo "${xrandrOutput}" | grep "${device}" -A 5 | grep -i "Brightness" | awk -F ':' '{print $2}') 30 | elif [[ "${METHOD}" = "kernel" ]]; then 31 | device="${BLOCK_INSTANCE:-intel_backlight}" 32 | maxBrightness=$(cat /sys/class/backlight/${device}/max_brightness) 33 | curBrightness=$(cat /sys/class/backlight/${device}/brightness) 34 | elif [[ "${METHOD}" = "xbacklight" ]]; then 35 | curBrightness=$(xbacklight -get) 36 | fi 37 | 38 | if [[ "${curBrightness}" -le 0 ]]; then 39 | echo "X" 40 | echo "" 41 | fi 42 | 43 | if [[ "${METHOD}" = "xrandr" ]]; then 44 | percent=$(echo "scale=0;${curBrightness} * 100" | bc -l) 45 | elif [[ "${METHOD}" = "kernel" ]]; then 46 | percent=$(echo "scale=0;${curBrightness} / ${maxBrightness} * 100" | bc -l) 47 | elif [[ "${METHOD}" = "xbacklight" ]]; then 48 | percent=$(echo "scale=0;${curBrightness}" | bc -l) 49 | fi 50 | 51 | percent=${percent%.*} 52 | 53 | if [[ "${percent}" -le 0 ]]; then 54 | echo "X" 55 | echo "" 56 | fi 57 | 58 | echo "${percent}%" 59 | echo "${percent}%" 60 | echo "" 61 | 62 | if [[ "${percent}" -le "${URGENT_VALUE}" ]]; then 63 | exit 33 64 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/cpu: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Source: http://askubuntu.com/a/450136 3 | 4 | URGENT_VALUE=90 5 | 6 | PREV_TOTAL=0 7 | PREV_IDLE=0 8 | 9 | cpuFile="/tmp/.cpu" 10 | 11 | if [[ -f "${cpuFile}" ]]; then 12 | fileCont=$(cat "${cpuFile}") 13 | PREV_TOTAL=$(echo "${fileCont}" | head -n 1) 14 | PREV_IDLE=$(echo "${fileCont}" | tail -n 1) 15 | fi 16 | 17 | CPU=(`cat /proc/stat | grep '^cpu '`) # Get the total CPU statistics. 18 | unset CPU[0] # Discard the "cpu" prefix. 19 | IDLE=${CPU[4]} # Get the idle CPU time. 20 | 21 | # Calculate the total CPU time. 22 | TOTAL=0 23 | 24 | for VALUE in "${CPU[@]:0:4}"; do 25 | let "TOTAL=$TOTAL+$VALUE" 26 | done 27 | 28 | if [[ "${PREV_TOTAL}" != "" ]] && [[ "${PREV_IDLE}" != "" ]]; then 29 | # Calculate the CPU usage since we last checked. 30 | let "DIFF_IDLE=$IDLE-$PREV_IDLE" 31 | let "DIFF_TOTAL=$TOTAL-$PREV_TOTAL" 32 | let "DIFF_USAGE=(1000*($DIFF_TOTAL-$DIFF_IDLE)/$DIFF_TOTAL+5)/10" 33 | echo "${DIFF_USAGE}%" 34 | echo "${DIFF_USAGE}%" 35 | echo "" 36 | else 37 | echo "?" 38 | echo "?" 39 | echo "" 40 | fi 41 | 42 | # Remember the total and idle CPU times for the next check. 43 | echo "${TOTAL}" > "${cpuFile}" 44 | echo "${IDLE}" >> "${cpuFile}" 45 | 46 | if [[ "${DIFF_USAGE}" -gt 0 ]] && [[ "${DIFF_USAGE}" -gt "${URGENT_VALUE}" ]]; then 47 | exit 33 48 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/fcitx: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SSPID=$(pgrep -l fcitx |awk -F ' ' '{print $1}') 4 | 5 | if [[ "${SSPID}" != "" ]]; then 6 | echo "" 7 | echo "" 8 | else 9 | echo "" 10 | echo "" 11 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/firewall: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Left click 4 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 5 | sudo ufw enable 6 | # Middle click 7 | elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 8 | sudo ufw reload 9 | # Right click 10 | elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then 11 | sudo ufw disable 12 | fi 13 | 14 | status=$(sudo ufw status 2>/dev/null) 15 | 16 | if [[ $? -gt 0 ]]; then 17 | exit 18 | fi 19 | 20 | if [[ "${status}" != *inactive* ]]; then 21 | echo "on" 22 | echo "on" 23 | echo "" 24 | else 25 | echo "off" 26 | echo "off" 27 | echo "" 28 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/headphone: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 4 | # termite -e alsamixer 5 | #elif [[ "${BLOCK_BUTTON}" -eq 4 ]]; then 6 | # amixer -q sset Master 2%+ 7 | #elif [[ "${BLOCK_BUTTON}" -eq 5 ]]; then 8 | # amixer -q sset Master 2%- 9 | #fi 10 | VALUE=$(amixer -c 0 contents | \ 11 | awk -F"," ' 12 | $1 == "numid=14" { 13 | c=1 14 | } c && /: values/ { 15 | split($0, a, "=") 16 | print a[2]; 17 | exit 18 | }') 19 | 20 | if [[ "${VALUE}" == "on" ]]; then 21 | echo "" 22 | #else 23 | # echo "" 24 | # echo "" 25 | fi 26 | 27 | 28 | #from https://unix.stackexchange.com/questions/76375/how-do-i-detect-wheter-the-audio-cable-is-connected 29 | #One way could perhaps be to use amixer. 30 | 31 | #Jack plugged in: 32 | 33 | #$ amixer -c 0 contents 34 | #numid=29,iface=CARD,name='Front Headphone Jack' 35 | # ; type=BOOLEAN,access=r-------,values=1 36 | # : values=on 37 | #... 38 | #Jack not plugged in: 39 | 40 | #$ amixer -c 0 contents 41 | #numid=29,iface=CARD,name='Front Headphone Jack' 42 | # ; type=BOOLEAN,access=r-------,values=1 43 | # : values=off 44 | #... 45 | #So for that specific one I could do: 46 | 47 | #amixer -c 0 contents | \ 48 | #awk -F"," ' 49 | #$1 == "numid=own" { 此處的own的序號必須自己尋找 50 | # c=1 51 | #} c && /: values/ { 52 | # split($0, a, "=") 53 | # print a[2]; 54 | # exit 55 | #}' 56 | #giving output of on or off. 57 | # 58 | -------------------------------------------------------------------------------- /.config/i3/Blocks/keystate: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TYPE="${BLOCK_INSTANCE:-caps}" 4 | 5 | lockLine=$(xset -q | grep "Num Lock") 6 | 7 | capsLock=$(echo "${lockLine}" | awk -F ' ' '{print $4}') 8 | numLock=$(echo "${lockLine}" | awk -F ' ' '{print $8}') 9 | 10 | if [[ "${capsLock}" == "on" && "${numLock}" == "on" ]]; then 11 | echo " " 12 | echo "" 13 | elif [[ "${capsLock}" == "on" ]]; then 14 | echo "" 15 | echo "" 16 | elif [[ "${numLock}" == "on" ]]; then 17 | echo "" 18 | echo "" 19 | else 20 | exit 21 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/mediaplayer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # Copyright (C) 2014 Tony Crisci 3 | # Copyright (C) 2015 Thiago Perrotta 4 | 5 | # This program is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | 18 | # Requires playerctl binary to be in your path (except cmus) 19 | # See: https://github.com/acrisci/playerctl 20 | 21 | # Set instance=NAME in the i3blocks configuration to specify a music player 22 | # (playerctl will attempt to connect to org.mpris.MediaPlayer2.[NAME] on your 23 | # DBus session). 24 | 25 | use Time::HiRes qw(usleep); 26 | use Env qw(BLOCK_INSTANCE); 27 | 28 | use constant DELAY => 50; # Delay in ms to let network-based players (spotify) reflect new data. 29 | use constant SPOTIFY_STR => 'spotify'; 30 | 31 | my @metadata = (); 32 | my $player_arg = ""; 33 | 34 | if ($BLOCK_INSTANCE) { 35 | $player_arg = "--player='$BLOCK_INSTANCE'"; 36 | } 37 | 38 | sub buttons { 39 | my $method = shift; 40 | 41 | if($method eq 'mpd') { 42 | if ($ENV{'BLOCK_BUTTON'} == 1) { 43 | system("mpc prev"); 44 | } elsif ($ENV{'BLOCK_BUTTON'} == 2) { 45 | system("mpc toggle"); 46 | } elsif ($ENV{'BLOCK_BUTTON'} == 3) { 47 | system("mpc next"); 48 | } elsif ($ENV{'BLOCK_BUTTON'} == 4) { 49 | system("mpc volume +10"); 50 | } elsif ($ENV{'BLOCK_BUTTON'} == 5) { 51 | system("mpc volume -10"); 52 | } 53 | } elsif ($method eq 'cmus') { 54 | if ($ENV{'BLOCK_BUTTON'} == 1) { 55 | system("cmus-remote --prev"); 56 | } elsif ($ENV{'BLOCK_BUTTON'} == 2) { 57 | system("cmus-remote --pause"); 58 | } elsif ($ENV{'BLOCK_BUTTON'} == 3) { 59 | system("cmus-remote --next"); 60 | } 61 | } elsif ($method eq 'playerctl') { 62 | if ($ENV{'BLOCK_BUTTON'} == 1) { 63 | system("playerctl $player_arg previous"); 64 | usleep(DELAY * 1000) if $BLOCK_INSTANCE eq SPOTIFY_STR; 65 | } elsif ($ENV{'BLOCK_BUTTON'} == 2) { 66 | system("playerctl $player_arg play-pause"); 67 | } elsif ($ENV{'BLOCK_BUTTON'} == 3) { 68 | system("playerctl $player_arg next"); 69 | usleep(DELAY * 1000) if $BLOCK_INSTANCE eq SPOTIFY_STR; 70 | } elsif ($ENV{'BLOCK_BUTTON'} == 4) { 71 | system("playerctl $player_arg volume 0.01+"); 72 | } elsif ($ENV{'BLOCK_BUTTON'} == 5) { 73 | system("playerctl $player_arg volume 0.01-"); 74 | } 75 | } elsif ($method eq 'rhythmbox') { 76 | if ($ENV{'BLOCK_BUTTON'} == 1) { 77 | system("rhythmbox-client --previous"); 78 | } elsif ($ENV{'BLOCK_BUTTON'} == 2) { 79 | system("rhythmbox-client --play-pause"); 80 | } elsif ($ENV{'BLOCK_BUTTON'} == 3) { 81 | system("rhythmbox-client --next"); 82 | } 83 | } 84 | } 85 | 86 | sub cmus { 87 | my @cmus = split /^/, qx(cmus-remote -Q); 88 | if ($? == 0) { 89 | foreach my $line (@cmus) { 90 | my @data = split /\s/, $line; 91 | if (shift @data eq 'tag') { 92 | my $key = shift @data; 93 | my $value = join ' ', @data; 94 | 95 | @metadata[0] = $value if $key eq 'artist'; 96 | @metadata[1] = $value if $key eq 'title'; 97 | } 98 | } 99 | 100 | if (@metadata) { 101 | buttons('cmus'); 102 | 103 | # metadata found so we are done 104 | print(join ' - ', @metadata); 105 | exit 0; 106 | } 107 | } 108 | } 109 | 110 | sub mpd { 111 | my $data = qx(mpc current); 112 | if (not $data eq '') { 113 | buttons("mpd"); 114 | print($data); 115 | exit 0; 116 | } 117 | } 118 | 119 | sub playerctl { 120 | buttons('playerctl'); 121 | 122 | my $artist = qx(playerctl $player_arg metadata artist); 123 | # exit status will be nonzero when playerctl cannot find your player 124 | exit(0) if $? || $artist eq '(null)'; 125 | 126 | push(@metadata, $artist) if $artist; 127 | 128 | my $title = qx(playerctl $player_arg metadata title); 129 | exit(0) if $? || $title eq '(null)'; 130 | 131 | push(@metadata, $title) if $title; 132 | 133 | print(join(" - ", @metadata)) if @metadata; 134 | } 135 | 136 | sub rhythmbox { 137 | buttons('rhythmbox'); 138 | 139 | my $data = qx(rhythmbox-client --print-playing --no-start); 140 | print($data); 141 | } 142 | 143 | if ($player_arg eq '' or $player_arg =~ /mpd/) { 144 | mpd; 145 | } 146 | elsif ($player_arg =~ /cmus/) { 147 | cmus; 148 | } 149 | elsif ($player_arg =~ /rhythmbox/) { 150 | rhythmbox; 151 | } 152 | else { 153 | playerctl; 154 | } 155 | -------------------------------------------------------------------------------- /.config/i3/Blocks/memory: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (C) 2014 Julien Bonjean 3 | 4 | # This program is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | 9 | # This program is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | 14 | # You should have received a copy of the GNU General Public License 15 | # along with this program. If not, see . 16 | 17 | TYPE="${BLOCK_INSTANCE:-mem}" 18 | 19 | awk -v type=$TYPE ' 20 | /^MemTotal:/ { 21 | mem_total=$2 22 | } 23 | /^MemFree:/ { 24 | mem_free=$2 25 | } 26 | /^Buffers:/ { 27 | mem_free+=$2 28 | } 29 | /^Cached:/ { 30 | mem_free+=$2 31 | } 32 | /^SwapTotal:/ { 33 | swap_total=$2 34 | } 35 | /^SwapFree:/ { 36 | swap_free=$2 37 | } 38 | END { 39 | if (type == "swap") { 40 | free=swap_free/1024/1024 41 | used=(swap_total-swap_free)/1024/1024 42 | total=swap_total/1024/1024 43 | } else { 44 | free=mem_free/1024/1024 45 | used=(mem_total-mem_free)/1024/1024 46 | total=mem_total/1024/1024 47 | } 48 | 49 | pct=0 50 | if (total > 0) { 51 | pct=used/total*100 52 | } 53 | 54 | # full text 55 | printf("%.f%%\n",pct) 56 | 57 | # short text 58 | printf("%.f%%\n", pct) 59 | 60 | # color 61 | if (pct > 90) { 62 | print("#FF0000\n") 63 | } else if (pct > 80) { 64 | print("#FFAE00\n") 65 | } else if (pct > 70) { 66 | print("#FFF600\n") 67 | } 68 | } 69 | ' /proc/meminfo 70 | -------------------------------------------------------------------------------- /.config/i3/Blocks/microphone: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Left click 4 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 5 | amixer -q sset Capture 5%+ 6 | # Middle click 7 | elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 8 | amixer -q sset Capture toggle 9 | # Right click 10 | elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then 11 | amixer -q sset Capture 5%- 12 | fi 13 | 14 | statusLine=$(amixer get Capture | tail -n 1) 15 | status=$(echo "${statusLine}" | grep -wo "on") 16 | volume=$(echo "${statusLine}" | awk -F ' ' '{print $5}' | tr -d '[]%') 17 | 18 | if [[ "${status}" == "on" ]]; then 19 | echo "${volume}%" 20 | echo "${volume}%" 21 | echo "" 22 | else 23 | echo "off" 24 | echo "off" 25 | echo "" 26 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/playerctl2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Based on https://aur.archlinux.org/packages/playerctl/ 3 | 4 | INSTANCE="${BLOCK_INSTANCE}" 5 | if [[ "${INSTANCE}" != "" ]]; then 6 | ARGUMENTS="--player ${INSTANCE}" 7 | fi 8 | 9 | ICON_PLAY="➤" 10 | ICON_PAUSE="Ⅱ" 11 | ICON_STOP="≠" 12 | CUR_ICON="" 13 | 14 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 15 | $(playerctl ${ARGUMENTS} previous) 16 | elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 17 | $(playerctl ${ARGUMENTS} play-pause) 18 | elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then 19 | $(playerctl ${ARGUMENTS} next) 20 | elif [[ "${BLOCK_BUTTON}" -eq 4 ]]; then 21 | $(playerctl ${ARGUMENTS} volume 0.2+) 22 | elif [[ "${BLOCK_BUTTON}" -eq 5 ]]; then 23 | $(playerctl ${ARGUMENTS} volume 0.2-) 24 | fi 25 | 26 | PLAYER_STATUS=$(playerctl ${ARGUMENTS} status) 27 | INFO_TITLE=$(playerctl ${ARGUMENTS} metadata title) 28 | INFO_ALBUM=$(playerctl ${ARGUMENTS} metadata album) 29 | INFO_ARTIST=$(playerctl ${ARGUMENTS} metadata artist) 30 | 31 | if [[ "${PLAYER_STATUS}" = "Paused" ]]; then 32 | CUR_ICON="${ICON_PAUSE}" 33 | elif [[ "${PLAYER_STATUS}" = "Playing" ]]; then 34 | CUR_ICON="${ICON_PLAY}" 35 | else 36 | CUR_ICON="${ICON_STOP}" 37 | fi 38 | 39 | if [[ "${INFO_TITLE}" != "" ]] && [[ "${INFO_ARTIST}" != "" ]]; then 40 | echo "${INFO_ARTIST} - ${INFO_TITLE} ${CUR_ICON}" 41 | echo "${INFO_ARTIST} - ${INFO_TITLE} ${CUR_ICON}" 42 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/ssid: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 4 | termite -e nmtui 5 | fi 6 | 7 | SSID_NAME=$(iwgetid -r) 8 | 9 | # You can put any urgent name so the block will give warning 10 | # if a network with this name is used, like public wifi or alike. 11 | # You can separate multiple values with \| 12 | URGENT_VALUE="" 13 | 14 | if [[ "${SSID_NAME}" != "" ]]; then 15 | echo "${SSID_NAME}" 16 | echo "${SSID_NAME}" 17 | echo "" 18 | 19 | if [[ "${URGENT_VALUE}" != "" ]] && [[ $(echo "${SSID_NAME}" | grep -we "${URGENT_VALUE}") != "" ]]; then 20 | exit 33 21 | fi 22 | else 23 | echo "x" 24 | echo "x" 25 | echo "" 26 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/sslocal: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SSPID=$(pgrep -l sslocal |awk -F ' ' '{print $1}') 4 | 5 | if [[ "${SSPID}" != "" ]]; then 6 | echo "" 7 | echo "" 8 | else 9 | echo "" 10 | echo "" 11 | echo "" 12 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/temperature: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env perl 2 | # Copyright 2014 Pierre Mavro 3 | # Copyright 2014 Vivien Didelot 4 | # Copyright 2014 Andreas Guldstrand 5 | # Copyright 2014 Benjamin Chretien 6 | 7 | # This program is free software: you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation, either version 3 of the License, or 10 | # (at your option) any later version. 11 | 12 | # This program is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | use strict; 21 | use warnings; 22 | use utf8; 23 | use Getopt::Long; 24 | 25 | binmode(STDOUT, ":utf8"); 26 | 27 | # default values 28 | my $t_warn = 70; 29 | my $t_crit = 90; 30 | my $chip = ""; 31 | my $temperature = -9999; 32 | 33 | sub help { 34 | print "Usage: temperature [-w ] [-c ] [--chip ]\n"; 35 | print "-w : warning threshold to become yellow\n"; 36 | print "-c : critical threshold to become red\n"; 37 | print "--chip : sensor chip\n"; 38 | exit 0; 39 | } 40 | 41 | GetOptions("help|h" => \&help, 42 | "w=i" => \$t_warn, 43 | "c=i" => \$t_crit, 44 | "chip=s" => \$chip); 45 | 46 | # Get chip temperature 47 | open (SENSORS, "sensors -u $chip |") or die; 48 | while () { 49 | if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) { 50 | $temperature = $1; 51 | last; 52 | } 53 | } 54 | close(SENSORS); 55 | 56 | $temperature eq -9999 and die 'Cannot find temperature'; 57 | 58 | # Print short_text, full_text 59 | print "$temperature°C\n" x2; 60 | 61 | # Print color, if needed 62 | if ($temperature >= $t_crit) { 63 | print "#FF0000\n"; 64 | exit 33; 65 | } elsif ($temperature >= $t_warn) { 66 | print "#FFFC00\n"; 67 | } 68 | 69 | exit 0; 70 | -------------------------------------------------------------------------------- /.config/i3/Blocks/time: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TIME=$(date '+%a %b %d %H:%M') 4 | 5 | echo "${TIME}" 6 | echo "${TIME}" 7 | echo "" -------------------------------------------------------------------------------- /.config/i3/Blocks/usb: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | DEVICE_NAME="${BLOCK_INSTANCE:-Keyboard}" 4 | 5 | DEVICE_INFO=$(lsusb | grep -i kingston) 6 | 7 | if [[ "${DEVICE_INFO}" != "" ]]; then 8 | echo "" 9 | echo "" 10 | echo "" 11 | else 12 | echo "" 13 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/volume: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Left click 4 | if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then 5 | termite -e alsamixer 6 | # amixer -q sset Master 10%+ 7 | # Middle click 8 | elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 9 | amixer -q sset Master toggle 10 | # Right click 11 | #elif [[ "${BLOCK_BUTTON}" -eq 2 ]]; then 12 | # amixer -q sset Master 10%- 13 | elif [[ "${BLOCK_BUTTON}" -eq 4 ]]; then 14 | amixer -q sset Master 2%+ 15 | elif [[ "${BLOCK_BUTTON}" -eq 5 ]]; then 16 | amixer -q sset Master 2%- 17 | fi 18 | 19 | statusLine=$(amixer get Master | tail -n 1) 20 | status=$(echo "${statusLine}" | grep -wo "on") 21 | 22 | volume=$(echo "${statusLine}" | awk -F ' ' '{print $4}' | tr -d '[]%') 23 | 24 | VALUE=$(amixer -c 0 contents | \ 25 | awk -F"," ' 26 | $1 == "numid=14" { 27 | c=1s 28 | } c && /: values/ { 29 | split($0, a, "=") 30 | print a[2]; 31 | exit 32 | }') 33 | 34 | 35 | if [[ "${status}" = "on" && "${VALUE}" = "on" ]]; then 36 | # if [[ "${VALUE}" = "on" ]]; then 37 | echo " ${volume}%" 38 | echo " ${volume}%" 39 | echo "" 40 | # elif 41 | # echo " ${volume}%" 42 | # echo " ${volume}%" 43 | # echo "" 44 | # fi 45 | elif [[ "${status}" = "on" && "${VALUE}" = "off" ]]; then 46 | echo " ${volume}%" 47 | echo "" 48 | else 49 | echo " 00%" 50 | echo " 00%" 51 | echo "" 52 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/weather: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Based on http://openweathermap.org/current 3 | 4 | API_KEY="8ca3ef456139c165488fb6a6f00739ed" 5 | 6 | # Check on http://openweathermap.org/find 7 | CITY_ID="${BLOCK_INSTANCE}" 8 | 9 | URGENT_LOWER=0 10 | URGENT_HIGHER=30 11 | 12 | ICON_SUNNY="" 13 | ICON_CLOUDY="" 14 | ICON_RAINY="" 15 | ICON_STORM="" 16 | ICON_SNOW="" 17 | ICON_FOG="" 18 | 19 | SYMBOL_CELSIUS="℃" 20 | # WEATHER_URL="http://api.openweathermap.org/data/2.5/weather?id="1808773"&appid="44db6a862fba0b067b1930da0d769e98"$&units=metric" 21 | WEATHER_URL="https://api.openweathermap.org/data/2.5/weather?id=${CITY_ID}&appid=${API_KEY}&units=metric" 22 | 23 | WEATHER_INFO=$(wget -qO- "${WEATHER_URL}") 24 | WEATHER_MAIN=$(echo "${WEATHER_INFO}" | grep -o -e '\"main\":\"[a-Z]*\"' | awk -F ':' '{print $2}' | tr -d '"') 25 | WEATHER_TEMP=$(echo "${WEATHER_INFO}" | grep -o -e '\"temp\":\-\?[0-9]*' | awk -F ':' '{print $2}' | tr -d '"') 26 | 27 | if [[ "${WEATHER_MAIN}" = *Snow* ]]; then 28 | echo "${ICON_SNOW} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 29 | echo "${ICON_SNOW} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 30 | echo "" 31 | elif [[ "${WEATHER_MAIN}" = *Rain* ]] || [[ "${WEATHER_MAIN}" = *Drizzle* ]]; then 32 | echo "${ICON_RAINY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 33 | echo "${ICON_RAINY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 34 | echo "" 35 | elif [[ "${WEATHER_MAIN}" = *Cloud* ]]; then 36 | echo "${ICON_CLOUDY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 37 | echo "${ICON_CLOUDY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 38 | echo "" 39 | elif [[ "${WEATHER_MAIN}" = *Clear* ]]; then 40 | echo "${ICON_SUNNY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 41 | echo "${ICON_SUNNY} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 42 | echo "" 43 | elif [[ "${WEATHER_MAIN}" = *Fog* ]] || [[ "${WEATHER_MAIN}" = *Mist* ]]; then 44 | echo "${ICON_FOG} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 45 | echo "${ICON_FOG} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 46 | echo "" 47 | else 48 | echo "${WEATHER_MAIN} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 49 | echo "${WEATHER_MAIN} ${WEATHER_TEMP}${SYMBOL_CELSIUS}" 50 | echo "" 51 | fi 52 | 53 | if [[ "${WEATHER_TEMP}" -lt "${URGENT_LOWER}" ]] || [[ "${WEATHER_TEMP}" -gt "${URGENT_HIGHER}" ]]; then 54 | exit 33 55 | fi 56 | -------------------------------------------------------------------------------- /.config/i3/Blocks/webcam: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ -c /dev/video0 ]]; then 4 | if [[ "$(fuser /dev/video0)" != "" ]]; then 5 | echo "rec" 6 | echo "rec" 7 | echo "" 8 | else 9 | echo "on" 10 | echo "on" 11 | echo "" 12 | else 13 | echo "off" 14 | echo "off" 15 | echo "" 16 | fi 17 | fi -------------------------------------------------------------------------------- /.config/i3/Blocks/window: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ACTIVE_WINDOW=$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME | cut -d '"' -f 2) 4 | 5 | if [[ "${ACTIVE_WINDOW}" != "" ]]; then 6 | echo "${ACTIVE_WINDOW}" 7 | echo "${ACTIVE_WINDOW}" 8 | echo "" 9 | fi -------------------------------------------------------------------------------- /.config/i3/config.original: -------------------------------------------------------------------------------- 1 | # This file has been auto-generated by i3-config-wizard(1). 2 | # It will not be overwritten, so edit it as you like. 3 | # 4 | # Should you change your keyboard layout some time, delete 5 | # this file and re-run i3-config-wizard(1). 6 | # 7 | 8 | # i3 config file (v4) 9 | # 10 | # Please see https://i3wm.org/docs/userguide.html for a complete reference! 11 | 12 | set $mod Mod4 13 | 14 | # Font for window titles. Will also be used by the bar unless a different font 15 | # is used in the bar {} block below. 16 | font pango:monospace 8 17 | 18 | # This font is widely installed, provides lots of unicode glyphs, right-to-left 19 | # text rendering and scalability on retina/hidpi displays (thanks to pango). 20 | #font pango:DejaVu Sans Mono 8 21 | 22 | # Start XDG autostart .desktop files using dex. See also 23 | # https://wiki.archlinux.org/index.php/XDG_Autostart 24 | exec --no-startup-id dex --autostart --environment i3 25 | 26 | # The combination of xss-lock, nm-applet and pactl is a popular choice, so 27 | # they are included here as an example. Modify as you see fit. 28 | 29 | # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the 30 | # screen before suspend. Use loginctl lock-session to lock your screen. 31 | exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork 32 | 33 | # NetworkManager is the most popular way to manage wireless networks on Linux, 34 | # and nm-applet is a desktop environment-independent system tray GUI for it. 35 | exec --no-startup-id nm-applet 36 | 37 | # Use pactl to adjust volume in PulseAudio. 38 | set $refresh_i3status killall -SIGUSR1 i3status 39 | bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status 40 | bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status 41 | bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status 42 | bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status 43 | 44 | # Use Mouse+$mod to drag floating windows to their wanted position 45 | floating_modifier $mod 46 | 47 | # start a terminal 48 | bindsym $mod+Return exec termite 49 | 50 | # kill focused window 51 | bindsym $mod+q kill 52 | 53 | # start dmenu (a program launcher) 54 | bindsym $mod+d exec --no-startup-id dmenu_run 55 | # A more modern dmenu replacement is rofi: 56 | # bindcode $mod+40 exec "rofi -modi drun,run -show drun" 57 | # There also is i3-dmenu-desktop which only displays applications shipping a 58 | # .desktop file. It is a wrapper around dmenu, so you need that installed. 59 | # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop 60 | 61 | # change focus 62 | bindsym $mod+j focus left 63 | bindsym $mod+k focus down 64 | bindsym $mod+l focus up 65 | bindsym $mod+semicolon focus right 66 | 67 | # alternatively, you can use the cursor keys: 68 | bindsym $mod+Left focus left 69 | bindsym $mod+Down focus down 70 | bindsym $mod+Up focus up 71 | bindsym $mod+Right focus right 72 | 73 | # move focused window 74 | bindsym $mod+Shift+j move left 75 | bindsym $mod+Shift+k move down 76 | bindsym $mod+Shift+l move up 77 | bindsym $mod+Shift+semicolon move right 78 | 79 | # alternatively, you can use the cursor keys: 80 | bindsym $mod+Shift+Left move left 81 | bindsym $mod+Shift+Down move down 82 | bindsym $mod+Shift+Up move up 83 | bindsym $mod+Shift+Right move right 84 | 85 | # split in horizontal orientation 86 | bindsym $mod+h split h 87 | 88 | # split in vertical orientation 89 | bindsym $mod+v split v 90 | 91 | # enter fullscreen mode for the focused container 92 | bindsym $mod+f fullscreen toggle 93 | 94 | # change container layout (stacked, tabbed, toggle split) 95 | bindsym $mod+s layout stacking 96 | bindsym $mod+w layout tabbed 97 | bindsym $mod+e layout toggle split 98 | 99 | # toggle tiling / floating 100 | bindsym $mod+Shift+space floating toggle 101 | 102 | # change focus between tiling / floating windows 103 | bindsym $mod+space focus mode_toggle 104 | 105 | # focus the parent container 106 | bindsym $mod+a focus parent 107 | 108 | # focus the child container 109 | #bindsym $mod+d focus child 110 | 111 | # Define names for default workspaces for which we configure key bindings later on. 112 | # We use variables to avoid repeating the names in multiple places. 113 | set $ws1 "1" 114 | set $ws2 "2" 115 | set $ws3 "3" 116 | set $ws4 "4" 117 | set $ws5 "5" 118 | set $ws6 "6" 119 | set $ws7 "7" 120 | set $ws8 "8" 121 | set $ws9 "9" 122 | set $ws10 "10" 123 | 124 | # switch to workspace 125 | bindsym $mod+1 workspace number $ws1 126 | bindsym $mod+2 workspace number $ws2 127 | bindsym $mod+3 workspace number $ws3 128 | bindsym $mod+4 workspace number $ws4 129 | bindsym $mod+5 workspace number $ws5 130 | bindsym $mod+6 workspace number $ws6 131 | bindsym $mod+7 workspace number $ws7 132 | bindsym $mod+8 workspace number $ws8 133 | bindsym $mod+9 workspace number $ws9 134 | bindsym $mod+0 workspace number $ws10 135 | 136 | # move focused container to workspace 137 | bindsym $mod+Shift+1 move container to workspace number $ws1 138 | bindsym $mod+Shift+2 move container to workspace number $ws2 139 | bindsym $mod+Shift+3 move container to workspace number $ws3 140 | bindsym $mod+Shift+4 move container to workspace number $ws4 141 | bindsym $mod+Shift+5 move container to workspace number $ws5 142 | bindsym $mod+Shift+6 move container to workspace number $ws6 143 | bindsym $mod+Shift+7 move container to workspace number $ws7 144 | bindsym $mod+Shift+8 move container to workspace number $ws8 145 | bindsym $mod+Shift+9 move container to workspace number $ws9 146 | bindsym $mod+Shift+0 move container to workspace number $ws10 147 | 148 | # reload the configuration file 149 | bindsym $mod+Shift+c reload 150 | # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) 151 | bindsym $mod+Shift+r restart 152 | # exit i3 (logs you out of your X session) 153 | 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'" 154 | 155 | # resize window (you can also use the mouse for that) 156 | mode "resize" { 157 | # These bindings trigger as soon as you enter the resize mode 158 | 159 | # Pressing left will shrink the window’s width. 160 | # Pressing right will grow the window’s width. 161 | # Pressing up will shrink the window’s height. 162 | # Pressing down will grow the window’s height. 163 | bindsym j resize shrink width 10 px or 10 ppt 164 | bindsym k resize grow height 10 px or 10 ppt 165 | bindsym l resize shrink height 10 px or 10 ppt 166 | bindsym semicolon resize grow width 10 px or 10 ppt 167 | 168 | # same bindings, but for the arrow keys 169 | bindsym Left resize shrink width 10 px or 10 ppt 170 | bindsym Down resize grow height 10 px or 10 ppt 171 | bindsym Up resize shrink height 10 px or 10 ppt 172 | bindsym Right resize grow width 10 px or 10 ppt 173 | 174 | # back to normal: Enter or Escape or $mod+r 175 | bindsym Return mode "default" 176 | bindsym Escape mode "default" 177 | bindsym $mod+r mode "default" 178 | } 179 | 180 | bindsym $mod+r mode "resize" 181 | 182 | # Start i3bar to display a workspace bar (plus the system information i3status 183 | # finds out, if available) 184 | #bar { 185 | # status_command i3status 186 | #} 187 | 188 | #polybar 189 | exec_always --no-startup-id $HOME/.config/polybar/launch.sh 190 | exec_always feh --bg-fill /home/theglitchh/Pictures/arch.png 191 | -------------------------------------------------------------------------------- /.config/i3/i3blocks.conf: -------------------------------------------------------------------------------- 1 | # i3blocks config file 2 | # 3 | # Please see man i3blocks for a complete reference! 4 | # The man page is also hosted at http://vivien.github.io/i3blocks 5 | # 6 | # List of valid properties: 7 | # 8 | align=center 9 | # color 10 | command=$HOME/.config/i3/Blocks/$BLOCK_NAME 11 | # full_text 12 | # instance 13 | # interval 14 | # label 15 | markup=none 16 | # min_widt 17 | # name 18 | separator=false 19 | separator_block_width=18 20 | # short_text 21 | # signal 22 | # urgent 23 | 24 | 25 | #plugins 26 | 27 | #[firewall] 28 | #interval=10 29 | #label=F 30 | 31 | #[window] 32 | #interval=1 33 | 34 | #[notifier] 35 | #label= 36 | #interval=1 37 | 38 | #[microphone] 39 | #label=m 40 | #interval=100 41 | 42 | [playerctl2] 43 | label= 44 | interval=5 45 | 46 | [mediaplayer] 47 | label= 48 | interval=1 49 | 50 | #[weather] 51 | #instance=1808773 52 | #label=寨 53 | #interval=2 54 | 55 | #[weather] 56 | #instance=1792947 57 | #label=津 58 | #interval=300 59 | 60 | [bandwidth] 61 | instance=wlp2s0;in 62 | label= 63 | interval=1 64 | 65 | [bandwidth] 66 | instance=wlp2s0;out 67 | label= 68 | interval=1 69 | 70 | [ssid] 71 | label= 72 | interval=60 73 | 74 | [volume] 75 | interval=1 76 | 77 | [brightness] 78 | label= 79 | interval=1 80 | 81 | [battery] 82 | label= 83 | instance=0 84 | interval=5 85 | 86 | 87 | [temperature] 88 | instance=Core 89 | label= 90 | interval=5 91 | 92 | [memory] 93 | label= 94 | interval=30 95 | 96 | [cpu] 97 | label= 98 | interval=2 99 | 100 | [time] 101 | interval=1 102 | label= 103 | 104 | [usb] 105 | instance=kingston 106 | interval=10 107 | separator_block_width=10 108 | 109 | [fcitx] 110 | interval=10 111 | separator_block_width=10 112 | 113 | [sslocal] 114 | interval=300 115 | separator_block_width=10 116 | 117 | [keystate] 118 | interval=3 119 | 120 | 121 | -------------------------------------------------------------------------------- /.config/i3/scripts/i3exit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | case "$1" in 5 | lock) 6 | i3lock -i ~/Pictures/walls/waterfall2.jpg 7 | ;; 8 | logout) 9 | i3-msg exit 10 | ;; 11 | suspend) 12 | systemctl suspend 13 | ;; 14 | hibernate) 15 | systemctl hibernate 16 | ;; 17 | reboot) 18 | systemctl reboot 19 | ;; 20 | shutdown) 21 | systemctl poweroff 22 | ;; 23 | *) 24 | echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}" 25 | exit 2 26 | esac 27 | 28 | exit 0 29 | -------------------------------------------------------------------------------- /.config/i3/scripts/mouse.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Version 0.1 Tuesday, 07 May 2013 3 | # Comments and complaints http://www.nicknorton.net 4 | # GUI for mouse wheel speed using imwheel in Gnome 5 | # imwheel needs to be installed for this script to work 6 | # sudo apt-get install imwheel 7 | # Pretty much hard wired to only use a mouse with 8 | # left, right and wheel in the middle. 9 | # If you have a mouse with complications or special needs, 10 | # use the command xev to find what your wheel does. 11 | # 12 | ### see if imwheel config exists, if not create it ### 13 | if [ ! -f ~/.imwheelrc ] 14 | then 15 | 16 | cat >~/.imwheelrc< 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | // Sleep time between daemon updates. 8 | #define SLEEP_TIME_S 300 9 | 10 | // Test for internet connection. Returns true if connection is established. 11 | static int test_internet_connection() 12 | { 13 | const char *cmd = "nc -zw1 google.com 443 1> /dev/null 2>&1"; 14 | return !system(cmd); 15 | } 16 | 17 | // Signal handler for signaling the weather applet. 18 | static void timer_handler(int sig, siginfo_t *si, void *uc) 19 | { 20 | (void) sig; // Ignore parameter. 21 | (void) si; // Ignore parameter. 22 | (void) uc; // Ignore parameter. 23 | 24 | // Test for internet connection till found or 20 times. 25 | for (int i = 0; i < 20; ++i) 26 | { 27 | if (test_internet_connection()) 28 | { 29 | // Connection established. Break out. 30 | break; 31 | } 32 | else 33 | { 34 | // Retry every second. 35 | sleep(1); 36 | } 37 | } 38 | 39 | // Signal the weather applet. 40 | const char *cmd = "pkill -RTMIN+2 i3blocks"; 41 | if ( system(cmd) ) 42 | { 43 | // Error message should be printed to stdout since stdout is the way to 44 | // interface with a user in i3blocks. 45 | puts("WEATHER_SIGNALER ERROR\n"); 46 | } 47 | } 48 | 49 | int timer_init_launch( 50 | timer_t *timer, 51 | struct sigevent *sev, 52 | struct sigaction *sa, 53 | struct itimerspec *tspec) 54 | { 55 | // Event initialization. 56 | sev->sigev_notify = SIGEV_SIGNAL; 57 | sev->sigev_signo = SIGRTMIN; 58 | sev->sigev_value.sival_ptr = timer; 59 | 60 | // Signal action type initializaion. 61 | sa->sa_flags = SA_SIGINFO; 62 | sa->sa_sigaction = timer_handler; 63 | sigemptyset(&sa->sa_mask); 64 | if (sigaction(SIGRTMIN, sa, NULL) == -1) 65 | return -1; 66 | 67 | // Initialze timer. 68 | if (timer_create(CLOCK_BOOTTIME, sev, timer) == -1) 69 | return -1; 70 | 71 | // Start the timer. 72 | tspec->it_value.tv_sec = SLEEP_TIME_S; 73 | tspec->it_value.tv_nsec = 0; 74 | tspec->it_interval.tv_sec = SLEEP_TIME_S; 75 | tspec->it_interval.tv_nsec = 0; 76 | if (timer_settime(*timer, 0, tspec, NULL) == -1) 77 | return -1; 78 | 79 | // Initialization successful. 80 | return 0; 81 | } 82 | 83 | int main() 84 | { 85 | timer_t timer; 86 | struct sigevent sev; 87 | struct sigaction sa; 88 | struct itimerspec tspec; 89 | 90 | // Initialize signaler 91 | if (timer_init_launch(&timer, &sev, &sa, &tspec)) 92 | exit(EXIT_FAILURE); 93 | 94 | // Signal on daemon launch. 95 | sleep(1); 96 | timer_handler(0, NULL, NULL); 97 | 98 | while(1) 99 | { 100 | sleep(100); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /.config/mpd/mpd.conf: -------------------------------------------------------------------------------- 1 | bind_to_address "127.0.0.1" 2 | port "6600" 3 | 4 | auto_update "yes" 5 | restore_paused "yes" 6 | 7 | music_directory "~/Music" 8 | playlist_directory "~/.config/mpd/playlists" 9 | db_file "~/.config/mpd/mpd.db" 10 | log_file "syslog" 11 | pid_file "/tmp/mpd.pid" 12 | state_file "~/.config/mpd/mpd.state" 13 | 14 | audio_output { 15 | type "pulse" 16 | name "pulse audio" 17 | } 18 | 19 | audio_output { 20 | type "fifo" 21 | name "Visualizer" 22 | format "44100:16:2" 23 | path "/tmp/mpd.fifo" 24 | } 25 | 26 | audio_output { 27 | type "httpd" 28 | name "lossless" 29 | encoder "flac" 30 | port "8000" 31 | max_client "8" 32 | mixer_type "software" 33 | format "44100:16:2" 34 | } 35 | 36 | -------------------------------------------------------------------------------- /.config/mpd/mpd.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/mpd/mpd.db -------------------------------------------------------------------------------- /.config/mpd/mpd.state: -------------------------------------------------------------------------------- 1 | sw_volume: 98 2 | audio_device_state:1:pulse audio 3 | audio_device_state:1:Visualizer 4 | audio_device_state:1:lossless 5 | state: play 6 | current: 13 7 | time: 120.070000 8 | random: 0 9 | repeat: 0 10 | single: 0 11 | consume: 0 12 | crossfade: 0 13 | mixrampdb: 0.000000 14 | mixrampdelay: -1.000000 15 | playlist_begin 16 | 0:liked/Lil Nas X,Billy Ray Cyrus - Old Town Road - Remix.mp3 17 | 1:liked/XXXTENTACION - Moonlight.mp3 18 | 2:RandB/Lakshane - Selfish.mp3 19 | 3:RandB/The Weeknd - A Lonely Night.mp3 20 | 4:RandB/Drake - Hotline Bling.mp3 21 | 5:RBIndia/Aadat - Atif Aslam (Juda Hoke Bhi) | Omkar | Latest Hindi Cover Song | 2021.mp3 22 | 6:RBIndia/NA - Kabhi Aayine Pe Full Video Song | Hate Story 2 | Jay Bhanushali | Surveen Chawla.mp3 23 | 7:RandB/theweeknd/The Weeknd - Often.mp3 24 | 8:RandB/theweeknd/The Weeknd - Acquainted.mp3 25 | 9:RandB/theweeknd/The Weeknd - In The Night.mp3 26 | 10:RandB/theweeknd/The Weeknd,Ed Sheeran - Dark Times.mp3 27 | 11:RandB/theweeknd/The Weeknd - Out of Time.mp3 28 | 12:RBIndia/NA - 'Tu Hai Ki Nahi' FULL VIDEO Song | Roy | Ankit Tiwari | Ranbir Kapoor, Jacqueline Fernandez, Tseries.mp3 29 | 13:RBIndia/Jiyein Kyun - Lofi Rain Mix | Chill Cafe.mp3 30 | 14:RBIndia/NA - Jee Le Zaraa Song | Talaash | Omkar | @JalRaj | Aamir Khan, Kareena Kapoor | Latest Cover 2021.mp3 31 | playlist_end 32 | -------------------------------------------------------------------------------- /.config/mpv/mpv.conf: -------------------------------------------------------------------------------- 1 | # vim: syntax=config 2 | 3 | 4 | ########### 5 | # General # 6 | ########### 7 | 8 | input-ipc-server=/tmp/mpvsocket # listen for IPC on this socket 9 | load-stats-overlay=no # use local stats.lua 10 | #save-position-on-quit # handled by a script 11 | 12 | no-border # no window title bar 13 | msg-module # prepend module name to log messages 14 | msg-color # color log messages on terminal 15 | use-filedir-conf # look for additional config files in the directory of the opened file 16 | # pause # no autoplay 17 | # keep-open # keep the player open when a file's end is reached 18 | autofit-larger=100%x95% # resize window in case it's larger than W%xH% of the screen 19 | cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen 20 | input-media-keys=no # enable/disable OSX media keys 21 | cursor-autohide=1000 # autohide the curser after 1s 22 | prefetch-playlist=yes 23 | screenshot-format=png 24 | screenshot-png-compression=8 25 | screenshot-template='~/Pictures/Screenshots/mpv/%F (%P) %n' 26 | 27 | hls-bitrate=max # use max quality for HLS streams 28 | 29 | 30 | cache=yes 31 | cache-default=4000000 # size in KB 32 | cache-backbuffer=250000 # size in KB 33 | demuxer-max-bytes=114748364 # ~100 MiB in bytes 34 | 35 | 36 | ############# 37 | -------------------------------------------------------------------------------- /.config/ncmpcpp/bindings: -------------------------------------------------------------------------------- 1 | #def_key "mouse" 2 | # mouse_event 3 | # 4 | def_key "k" 5 | scroll_up 6 | # 7 | #def_key "shift-up" 8 | # select_item 9 | # scroll_up 10 | # 11 | def_key "j" 12 | scroll_down 13 | # 14 | #def_key "shift-down" 15 | # select_item 16 | # scroll_down 17 | # 18 | #def_key "[" 19 | # scroll_up_album 20 | # 21 | #def_key "]" 22 | # scroll_down_album 23 | # 24 | #def_key "{" 25 | # scroll_up_artist 26 | # 27 | #def_key "}" 28 | # scroll_down_artist 29 | # 30 | #def_key "page_up" 31 | # page_up 32 | # 33 | #def_key "page_down" 34 | # page_down 35 | # 36 | #def_key "home" 37 | # move_home 38 | # 39 | #def_key "end" 40 | # move_end 41 | # 42 | #def_key "insert" 43 | # select_item 44 | # 45 | #def_key "enter" 46 | # enter_directory 47 | # 48 | #def_key "enter" 49 | # toggle_output 50 | # 51 | #def_key "enter" 52 | # run_action 53 | # 54 | #def_key "enter" 55 | # play_item 56 | # 57 | #def_key "space" 58 | # add_item_to_playlist 59 | # 60 | #def_key "space" 61 | # toggle_lyrics_update_on_song_change 62 | # 63 | #def_key "space" 64 | # toggle_visualization_type 65 | # 66 | #def_key "delete" 67 | # delete_playlist_items 68 | # 69 | #def_key "delete" 70 | # delete_browser_items 71 | # 72 | #def_key "delete" 73 | # delete_stored_playlist 74 | # 75 | def_key "l" 76 | next_column 77 | # 78 | #def_key "right" 79 | # slave_screen 80 | # 81 | #def_key "right" 82 | # volume_up 83 | # 84 | #def_key "+" 85 | # volume_up 86 | # 87 | def_key "h" 88 | previous_column 89 | # 90 | #def_key "left" 91 | # master_screen 92 | # 93 | #def_key "left" 94 | # volume_down 95 | # 96 | #def_key "=" 97 | # volume_down 98 | # 99 | #def_key ":" 100 | # execute_command 101 | # 102 | #def_key "tab" 103 | # next_screen 104 | # 105 | #def_key "shift-tab" 106 | # previous_screen 107 | # 108 | #def_key "f1" 109 | # show_help 110 | # 111 | #def_key "1" 112 | # show_playlist 113 | # 114 | #def_key "2" 115 | # show_browser 116 | # 117 | #def_key "2" 118 | # change_browse_mode 119 | # 120 | #def_key "3" 121 | # show_search_engine 122 | # 123 | #def_key "3" 124 | # reset_search_engine 125 | # 126 | #def_key "4" 127 | # show_media_library 128 | # 129 | #def_key "4" 130 | # toggle_media_library_columns_mode 131 | # 132 | #def_key "5" 133 | # show_playlist_editor 134 | # 135 | #def_key "6" 136 | # show_tag_editor 137 | # 138 | #def_key "7" 139 | # show_outputs 140 | # 141 | #def_key "8" 142 | # show_visualizer 143 | # 144 | #def_key "-" 145 | # show_clock 146 | # 147 | #def_key "@" 148 | # show_server_info 149 | # 150 | #def_key "s" 151 | # stop 152 | # 153 | #def_key "p" 154 | # pause 155 | # 156 | #def_key ">" 157 | # next 158 | # 159 | #def_key "<" 160 | # previous 161 | # 162 | #def_key "ctrl-h" 163 | # jump_to_parent_directory 164 | # 165 | #def_key "ctrl-h" 166 | # replay_song 167 | # 168 | #def_key "backspace" 169 | # jump_to_parent_directory 170 | # 171 | #def_key "backspace" 172 | # replay_song 173 | # 174 | #def_key "f" 175 | # seek_forward 176 | # 177 | #def_key "b" 178 | # seek_backward 179 | # 180 | #def_key "r" 181 | # toggle_repeat 182 | # 183 | #def_key "z" 184 | # toggle_random 185 | # 186 | #def_key "y" 187 | # save_tag_changes 188 | # 189 | #def_key "y" 190 | # start_searching 191 | # 192 | #def_key "y" 193 | # toggle_single 194 | # 195 | #def_key "R" 196 | # toggle_consume 197 | # 198 | #def_key "Y" 199 | # toggle_replay_gain_mode 200 | # 201 | #def_key "T" 202 | # toggle_add_mode 203 | # 204 | #def_key "|" 205 | # toggle_mouse 206 | # 207 | #def_key "#" 208 | # toggle_bitrate_visibility 209 | # 210 | #def_key "Z" 211 | # shuffle 212 | # 213 | #def_key "x" 214 | # toggle_crossfade 215 | # 216 | #def_key "X" 217 | # set_crossfade 218 | # 219 | #def_key "u" 220 | # update_database 221 | # 222 | #def_key "ctrl-s" 223 | # sort_playlist 224 | # 225 | #def_key "ctrl-s" 226 | # toggle_browser_sort_mode 227 | # 228 | #def_key "ctrl-s" 229 | # toggle_media_library_sort_mode 230 | # 231 | #def_key "ctrl-r" 232 | # reverse_playlist 233 | # 234 | #def_key "ctrl-f" 235 | # apply_filter 236 | # 237 | #def_key "ctrl-_" 238 | # select_found_items 239 | # 240 | #def_key "/" 241 | # find 242 | # 243 | #def_key "/" 244 | # find_item_forward 245 | # 246 | #def_key "?" 247 | # find 248 | # 249 | #def_key "?" 250 | # find_item_backward 251 | # 252 | #def_key "." 253 | # next_found_item 254 | # 255 | #def_key "," 256 | # previous_found_item 257 | # 258 | #def_key "w" 259 | # toggle_find_mode 260 | # 261 | #def_key "e" 262 | # edit_song 263 | # 264 | #def_key "e" 265 | # edit_library_tag 266 | # 267 | #def_key "e" 268 | # edit_library_album 269 | # 270 | #def_key "e" 271 | # edit_directory_name 272 | # 273 | #def_key "e" 274 | # edit_playlist_name 275 | # 276 | #def_key "e" 277 | # edit_lyrics 278 | # 279 | #def_key "i" 280 | # show_song_info 281 | # 282 | #def_key "I" 283 | # show_artist_info 284 | # 285 | #def_key "g" 286 | # jump_to_position_in_song 287 | # 288 | def_key "L" 289 | show_lyrics 290 | # 291 | #def_key "ctrl-v" 292 | # select_range 293 | # 294 | #def_key "v" 295 | # reverse_selection 296 | # 297 | #def_key "V" 298 | # remove_selection 299 | # 300 | #def_key "B" 301 | # select_album 302 | # 303 | #def_key "a" 304 | # add_selected_items 305 | # 306 | #def_key "c" 307 | # clear_playlist 308 | # 309 | #def_key "c" 310 | # clear_main_playlist 311 | # 312 | #def_key "C" 313 | # crop_playlist 314 | # 315 | #def_key "C" 316 | # crop_main_playlist 317 | # 318 | #def_key "m" 319 | # move_sort_order_up 320 | # 321 | #def_key "m" 322 | # move_selected_items_up 323 | # 324 | #def_key "n" 325 | # move_sort_order_down 326 | # 327 | #def_key "n" 328 | # move_selected_items_down 329 | # 330 | #def_key "M" 331 | # move_selected_items_to 332 | # 333 | #def_key "A" 334 | # add 335 | # 336 | #def_key "S" 337 | # save_playlist 338 | # 339 | #def_key "o" 340 | # jump_to_playing_song 341 | # 342 | #def_key "G" 343 | # jump_to_browser 344 | # 345 | #def_key "G" 346 | # jump_to_playlist_editor 347 | # 348 | #def_key "~" 349 | # jump_to_media_library 350 | # 351 | #def_key "E" 352 | # jump_to_tag_editor 353 | # 354 | #def_key "U" 355 | # toggle_playing_song_centering 356 | # 357 | #def_key "P" 358 | # toggle_display_mode 359 | # 360 | #def_key "\\" 361 | # toggle_interface 362 | # 363 | #def_key "!" 364 | # toggle_separators_between_albums 365 | # 366 | #def_key "L" 367 | # toggle_lyrics_fetcher 368 | # 369 | #def_key "F" 370 | # fetch_lyrics_in_background 371 | # 372 | #def_key "alt-l" 373 | # toggle_fetching_lyrics_in_background 374 | # 375 | #def_key "ctrl-l" 376 | # toggle_screen_lock 377 | # 378 | #def_key "`" 379 | # toggle_library_tag_type 380 | # 381 | #def_key "`" 382 | # refetch_lyrics 383 | # 384 | #def_key "`" 385 | # add_random_items 386 | # 387 | #def_key "ctrl-p" 388 | # set_selected_items_priority 389 | # 390 | #def_key "q" 391 | # quit 392 | # 393 | -------------------------------------------------------------------------------- /.config/ncmpcpp/config: -------------------------------------------------------------------------------- 1 | # DIRECTORY 2 | # --- 3 | ncmpcpp_directory = ~/.config/ncmpcpp 4 | lyrics_directory = ~/.config/ncmpcpp/lyrics 5 | mpd_music_dir = ~/Music 6 | mpd_host = "127.0.0.1" 7 | mpd_port = "6600" 8 | # GENERAL 9 | # --- 10 | ####################################################################### 11 | ## This is configuration file. Copy it to $HOME/.ncmpcpp/config ## 12 | ## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences ## 13 | ####################################################################### 14 | 15 | ### directories ### 16 | 17 | 18 | 19 | ### Directory for storing downloaded lyrics ### 20 | 21 | 22 | 23 | ################################ 24 | 25 | % egrep -v '^#' .ncmpcpp/config 26 | 27 | visualizer_in_stereo = "no" 28 | visualizer_type = "wave_filled" 29 | visualizer_look = "▮" 30 | #visualizer_look = "▀▋" 31 | #visualizer_look = "●▮" 32 | visualizer_color = "red" 33 | 34 | message_delay_time = "2" 35 | 36 | playlist_shorten_total_times = "yes" 37 | playlist_display_mode = "classic" 38 | playlist_editor_display_mode = "columns" 39 | 40 | browser_display_mode = "columns" 41 | 42 | search_engine_display_mode = "columns" 43 | 44 | autocenter_mode = "yes" 45 | 46 | mouse_support = "yes" 47 | 48 | centered_cursor = "yes" 49 | 50 | user_interface = "classic" 51 | 52 | follow_now_playing_lyrics = "yes" 53 | 54 | locked_screen_width_part = "60" 55 | 56 | display_bitrate = "no" 57 | 58 | external_editor = "vim" 59 | 60 | progressbar_elapsed_color = "white" 61 | progressbar_color = "black" 62 | 63 | #progressbar_look = "▃▃▃" 64 | progressbar_look = "──" 65 | #progressbar_look = "==─" 66 | 67 | header_visibility = "no" 68 | statusbar_visibility = "yes" 69 | titles_visibility = "no" 70 | 71 | statusbar_color = "white" 72 | 73 | enable_window_title = "yes" 74 | 75 | now_playing_prefix = "$b$1" 76 | now_playing_suffix = "$8$/b" 77 | 78 | #now_playing_prefix = "$u$2" 79 | #now_playing_suffix = "$2$/u$2" 80 | 81 | song_columns_list_format = "(6)[]{} (23)[red]{a} (26)[yellow]{t|f} (40)[green]{b} (4)[blue]{l}" 82 | 83 | #song_list_format = " $7%l $2%t $R$5%a " 84 | #song_list_format = "$1> $2%a$8 - $3%b - $8%t $R $3%l " 85 | song_list_format = "$1> $2%a$8 - $8%t $R $3%l " 86 | 87 | song_status_format = "$b$7♫ $2%a $8- $3%b $8- $8%t " 88 | song_window_title_format = " {%a} - {%t}" 89 | 90 | 91 | ################### 92 | ## song format ## 93 | ## 94 | ## For a song format you can use: 95 | ## 96 | ## %l - length 97 | ## %f - filename 98 | ## %D - directory 99 | ## %a - artist 100 | ## %A - album artist 101 | ## %t - title 102 | ## %b - album 103 | ## %y - date 104 | ## %n - track number (01/12 -> 01) 105 | ## %N - full track info (01/12 -> 01/12) 106 | ## %g - genre 107 | ## %c - composer 108 | ## %p - performer 109 | ## %d - disc 110 | ## %C - comment 111 | ## %P - priority 112 | ## $R - begin right alignment 113 | ## 114 | ## 115 | ## Colors: 116 | ## 117 | ## - 0 - default window color (discards all other colors) 118 | ## - 1 - black 119 | ## - 2 - red 120 | ## - 3 - green 121 | ## - 4 - yellow 122 | ## - 5 - blue 123 | ## - 6 - magenta 124 | ## - 7 - cyan 125 | ## - 8 - white 126 | ## - 9 - end of current color 127 | ## - b - bold text 128 | ## - u - underline text 129 | ## - r - reverse colors 130 | ## - a - use alternative character set 131 | ## 132 | ## 133 | ################################################################### 134 | ## Custom command that will be executed each time song changes ## 135 | ## 136 | #execute_on_song_change = 137 | # 138 | ## 139 | ########################################################################### 140 | ## Custom command that will be executed each time player state changes ## 141 | ## The environment variable MPD_PLAYER_STATE is set to the current ## 142 | ## state (either unknown, play, pause, or stop) for its duration ## 143 | ## 144 | # 145 | #execute_on_player_state_change = notify-send "$(mpc current)" 146 | 147 | startup_slave_screen=visualizer 148 | 149 | execute_on_song_change="notify-send "Now playing" "$(ncmpcpp -q --current-song="{%a - }{%t}|{%f}")"" 150 | -------------------------------------------------------------------------------- /.config/ncmpcpp/error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheGlitchh/dotfiles/f1f54aba06d9fa6a23847c186a49c17b5d31edbd/.config/ncmpcpp/error.log -------------------------------------------------------------------------------- /.config/nvim/init.vim: -------------------------------------------------------------------------------- 1 | source $HOME/.config/nvim/vim-plug/plugins.vim 2 | -------------------------------------------------------------------------------- /.config/nvim/vim-plug/plugins.vim: -------------------------------------------------------------------------------- 1 | " auto-install vim-plug 2 | if empty(glob('~/.config/nvim/autoload/plug.vim')) 3 | silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs 4 | \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 5 | "autocmd VimEnter * PlugInstall 6 | "autocmd VimEnter * PlugInstall | source $MYVIMRC 7 | endif 8 | 9 | call plug#begin('~/.config/nvim/autoload/plugged') 10 | Plug 'turbio/bracey.vim', { 'do': 'npm install --prefix server' } 11 | Plug 'ellisonleao/carbon-now.nvim' 12 | Plug 'https://github.com/ycm-core/YouCompleteMe' 13 | Plug 'ggreer/the_silver_searcher' 14 | Plug 'erietz/vim-terminator', { 'branch': 'main'} 15 | Plug 'sheerun/vim-polyglot' 16 | Plug 'scrooloose/NERDTree' 17 | Plug 'jiangmiao/auto-pairs' 18 | Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} 19 | Plug 'http://github.com/tpope/vim-surround' 20 | Plug 'neovim/nvim-lspconfig' 21 | Plug 'nvim-lua/completion-nvim' 22 | Plug 'http://github.com/tpope/vim-surround' 23 | Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc 24 | Plug 'https://github.com/mbbill/undotree' 25 | Plug 'github/copilot.vim' 26 | " Plug 'https://github.com/numirias/semshi' 27 | Plug 'https://github.com/tpope/vim-fugitive' 28 | Plug 'https://github.com/preservim/tagbar', {'on': 'TagbarToggle'} " Tagbar for code navigation 29 | Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal 30 | Plug 'https://github.com/vim-airline/vim-airline' " Status bar 31 | Plug 'vim-airline/vim-airline-themes' 32 | Plug 'https://github.com/davidhalter/jedi-vim' 33 | Plug 'https://github.com/junegunn/fzf.vim' " Fuzzy Finder, Needs Silversearcher-ag for :Ag 34 | Plug 'https://github.com/junegunn/fzf' 35 | Plug 'morhetz/gruvbox' 36 | Plug 'neoclide/coc.nvim', {'branch': 'release'} 37 | Plug 'myusuf3/numbers.vim' 38 | Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons 39 | Plug 'nvim-telescope/telescope.nvim' 40 | Plug 'nvim-lua/plenary.nvim' 41 | call plug#end() 42 | 43 | set encoding=UTF-8 44 | 45 | :colorscheme gruvbox 46 | 47 | " VIM AIRLINE CONFIGURATION 48 | let g:airline_theme='gruvbox' 49 | let g:airline_powerline_fonts = 1 50 | 51 | if !exists('g:airline_symbols') 52 | let g:airline_symbols = {} 53 | endif 54 | 55 | let g:bullets_enabled_file_types = [ 56 | \ 'markdown', 57 | \ 'text' 58 | \] 59 | 60 | let g:airline_left_sep = '' 61 | let g:airline_left_alt_sep = '' 62 | let g:airline_right_sep = '' 63 | let g:airline_right_alt_sep = '' 64 | let g:airline_symbols.branch = '' 65 | let g:airline_symbols.readonly = '' 66 | let g:airline_symbols.linenr = '' 67 | 68 | "C/C++ 69 | let g:runner_c_compiler = 'gcc' 70 | let g:runner_cpp_compiler = 'g++' 71 | let g:runner_c_options = '-std=c99 -Wall' 72 | let g:runner_cpp_options = '-std=c++11 -Wall' 73 | 74 | nmap :TagbarToggle 75 | nnoremap :NumbersToggle 76 | nnoremap :NumbersOnOff 77 | 78 | " for coc keybinding 79 | let g:ycm_auto_trigger = 0 80 | imap (YCMComplete) 81 | 82 | nnoremap jd :YcmCompleter GoTo 83 | inoremap pumvisible() ? coc#_select_confirm() : "" 84 | function MyCustomHighlights() 85 | hi semshiGlobal ctermfg=blue guifg=#61afef 86 | hi semshiImported ctermfg=red guifg=#d28fd7 cterm=bold gui=bold 87 | hi semshiBuiltin ctermfg=yellow guifg=#f5d08b 88 | hi semshiSelected ctermfg=white guifg=#dddddd ctermbg=gray guibg=#454c5a 89 | endfunction 90 | autocmd FileType python call MyCustomHighlights() 91 | 92 | 93 | 94 | " NERDTree Configuration 95 | 96 | let g:NERDTreeDirArrowExpandable="+" 97 | let g:NERDTreeDirArrowCollapsible="~" 98 | let g:python_highlight_all = 1 99 | 100 | nnoremap :NERDTreeFocus 101 | nnoremap :NERDTree 102 | nnoremap :NERDTreeToggle 103 | nnoremap :UndotreeToggle 104 | 105 | let mapleader= '\' 106 | -------------------------------------------------------------------------------- /.config/polybar/dark-colors: -------------------------------------------------------------------------------- 1 | ; vim:ft=dosini 2 | 3 | [colors] 4 | background = #001d2021 5 | buffer = #3c3836 6 | foreground = #ebdbb2 7 | nord6 = #fbf1c7 8 | ;yellow lite 9 | nord7 = #8ec07c 10 | ;green light 11 | nord8 = #83a598 12 | ;blue light 13 | nord9 = #458588 14 | ;solaris green 15 | urgent = #fb4934 16 | ;red 17 | warning = #fe8019 18 | ;orange 19 | notify = #fabd2f 20 | ;yellow 21 | success = #b8bb26 22 | ; green light 23 | function = #d3869b 24 | ; purple 25 | -------------------------------------------------------------------------------- /.config/polybar/dark-config: -------------------------------------------------------------------------------- 1 | ; vim:ft=dosini 2 | [global-wm] 3 | include-file = $HOME/.config/polybar/dark-colors 4 | include-file = $HOME/.config/polybar/nord-top 5 | include-file = $HOME/.config/polybar/nord-down 6 | include-file = $HOME/.config/polybar/nord-config 7 | 8 | [bar/base] 9 | theme = dark 10 | monitor = ${config.monitor} 11 | width = ${config.width} 12 | height = ${config.height} 13 | offset-x = ${config.offset-x} 14 | offset-y = ${config.offset-y} 15 | radius = ${config.radius} 16 | 17 | fixed-center = ${config.fixed-center} 18 | dpi = ${config.dpi} 19 | 20 | background = ${colors.background} 21 | foreground = ${colors.foreground} 22 | 23 | line-size = ${config.line-size} 24 | 25 | padding = 0 26 | override-redirect = ${config.override-redirect} 27 | wm-restack = ${config.wm-restack} 28 | 29 | tray-padding = 3 30 | tray-detached = false 31 | tray-maxsize = 22 32 | 33 | cursor-click = pointer 34 | cursor-scroll = ns-resize 35 | 36 | enable-ipc = true 37 | 38 | [bar/nord-top] 39 | inherit = bar/base 40 | 41 | module-margin = 2 42 | 43 | font-0 = Lunasima:size=12 44 | font-1 = FontAwesome6FreeSolid:pixelsize=12;1 45 | font-2 = FontAwesome6FreeRegular:pixelsize=12;1 46 | font-3 = FontAwesome6Brands:pixelsize=8;1 47 | font-4 = Lunasima:pixelsize=12 48 | 49 | modules-left = ${config.top-left} 50 | modules-center = ${config.top-center} 51 | modules-right = ${config.top-right} 52 | 53 | tray-position = ${config.systray-top} 54 | 55 | [bar/nord-down] 56 | inherit = bar/base 57 | height = 1.75% 58 | bottom = true 59 | 60 | module-margin = 2 61 | 62 | 63 | font-0 = Lunasima:size=12 64 | font-1 = FontAwesome6FreeSolid:pixelsize=12;1 65 | font-2 = FontAwesome6Brands:pixelsize=8;1 66 | font-3 = Weather Icons:style=Regular:size=12;1 67 | font-4 = Lunasima:pixelsize=12 68 | 69 | modules-left = ${config.bottom-left} 70 | modules-center = ${config.bottom-center} 71 | modules-right = ${config.bottom-right} 72 | 73 | tray-position = ${config.systray-bottom} 74 | -------------------------------------------------------------------------------- /.config/polybar/launch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Terminate already running bar instances 4 | killall -q polybar 5 | killall -q glava 6 | # Wait until the processes have been shut down 7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 8 | 9 | # Launch bar1 and bar2 10 | if [ "$1" == "light" ] 11 | then 12 | polybar -c $HOME/.config/polybar/light-config nord-top & 13 | polybar -c $HOME/.config/polybar/light-config nord-down & 14 | glava --desktop & 15 | else 16 | polybar -c $HOME/.config/polybar/dark-config nord-top & 17 | polybar -c $HOME/.config/polybar/dark-config nord-down & 18 | glava --desktop & 19 | fi 20 | 21 | echo "Bars launched..." 22 | -------------------------------------------------------------------------------- /.config/polybar/light-colors: -------------------------------------------------------------------------------- 1 | ; vim:ft=dosini 2 | 3 | [colors] 4 | background = #1D282828 5 | buffer = #3c3836 6 | foreground = #ebdbb2 7 | nord6 = #fbf1c7 8 | nord7 = #8ec07c 9 | nord8 = #83a598 10 | nord9 = #458588 11 | urgent = #fb4934 12 | warning = #fe8019 13 | notify = #fabd2f 14 | success = #b8bb26 15 | function = #d3869b 16 | -------------------------------------------------------------------------------- /.config/polybar/light-config: -------------------------------------------------------------------------------- 1 | ; vim:ft=dosini 2 | [global-wm] 3 | include-file = $HOME/.config/polybar/light-colors 4 | include-file = $HOME/.config/polybar/nord-top 5 | include-file = $HOME/.config/polybar/nord-down 6 | include-file = $HOME/.config/polybar/nord-config 7 | 8 | [bar/base] 9 | theme = light 10 | monitor = ${config.monitor} 11 | width = ${config.width} 12 | height = ${config.height} 13 | offset-x = ${config.offset-x} 14 | offset-y = ${config.offset-y} 15 | radius = ${config.radius} 16 | 17 | fixed-center = ${config.fixed-center} 18 | dpi = ${config.dpi} 19 | 20 | background = ${colors.background} 21 | foreground = ${colors.foreground} 22 | 23 | line-size = ${config.line-size} 24 | 25 | padding = 0 26 | override-redirect = ${config.override-redirect} 27 | wm-restack = ${config.wm-restack} 28 | 29 | tray-padding = 3 30 | tray-detached = false 31 | tray-maxsize = 22 32 | 33 | cursor-click = pointer 34 | cursor-scroll = ns-resize 35 | 36 | enable-ipc = true 37 | 38 | [bar/nord-top] 39 | inherit = bar/base 40 | module-margin = 1 41 | 42 | font-0 = FiraCodeRegular:pixelsize=12 43 | font-1 = FontAwesome6FreeSolid:pixelsize=12;1 44 | font-2 = FontAwesome6FreeRegular:pixelsize=12;1 45 | font-3 = FontAwesome6Brands:pixelsize=8;1 46 | font-4 = WenQuanYiMicroHei:size=12 47 | 48 | modules-left = ${config.top-left} 49 | modules-center = ${config.top-center} 50 | modules-right = ${config.top-right} 51 | 52 | tray-position = ${config.systray-top} 53 | 54 | [bar/nord-down] 55 | inherit = bar/base 56 | bottom = true 57 | 58 | padding = 2 59 | module-margin = 2 60 | 61 | font-0 = FiraCodeRegular:pixelsize=12 62 | font-1 = FontAwesome6FreeSolid:pixelsize=12;1 63 | font-2 = FontAwesome6FreeRegular:pixelsize=12;1 64 | font-3 = FontAwesome6Brands:pixelsize=8;1 65 | font-4 = Weather Icons:style=Regular:size=12;1 66 | font-5 = WenQuanYiMicroHei:size=12 67 | 68 | modules-left = ${config.bottom-left} 69 | modules-center = ${config.bottom-center} 70 | modules-right = ${config.bottom-right} 71 | 72 | tray-position = ${config.systray-bottom} 73 | 74 | -------------------------------------------------------------------------------- /.config/polybar/nord-config: -------------------------------------------------------------------------------- 1 | ;vim:ft=dosini 2 | 3 | [config] 4 | # DPI value for HiDPI screen 5 | dpi = 87 6 | monitor = 7 | 8 | # bar position, apply globally 9 | width = 100% 10 | height = 3% 11 | offset-x = 0 12 | offset-y = 0 13 | radius = 0.0 14 | 15 | fixed-center = true 16 | override-redirect = false 17 | wm-restack = i3 18 | 19 | # module list: 20 | # alsa: Display current volume 21 | # backlight: Display screen brightness 22 | # date: Display date 23 | # notify: Notify icon, can customize its binding 24 | # network-short: Network connect icon, can customize its binding 25 | # battery: Battery info 26 | # keyboard: CapsLock indicator 27 | # mpd: mpd status and controls 28 | # i3: i3 workspace icons 29 | # bspwm: bspwm workspace icons 30 | # workspace-name: i3 current workspace name, need to be in the format like "1:Home" 31 | # title: title of the active window 32 | # network-detail: Download and upload speed 33 | # weather: Display openweather info 34 | # powermenu: menu to control system power 35 | # info-hackspeed: Numper of characters clicked per minute 36 | # daily-poem: Display poem 37 | # temperature: Display internal temperature 38 | # memory: Display memory usage 39 | # cpu: Display cpu usage 40 | # show-desktop: Display desktop (i3 only) 41 | # clash-widget: showing clash service 42 | # onedrive-widget: showing onedrive service 43 | # clipmenu-widget: showing clipmenu service 44 | 45 | # Top modules 46 | top-left = i3 mpv-polybar 47 | top-center = spotify mpd 48 | top-right = keyboard backlight alsa battery network-short date 49 | 50 | # Bottom modules 51 | bottom-left = weather network-detail 52 | bottom-center = title 53 | bottom-right = cpu info-hackspeed temperature memory 54 | systray-top = none 55 | systray-bottom = right 56 | 57 | # global style 58 | line-size = 0 59 | 60 | # Modules configure option 61 | # the default value in this section should work in most cases, 62 | # if some of them doesn't suit your environment, you can change 63 | # it from here. 64 | # network interface, check by `ip link show` 65 | interface = wlan0 66 | # when the current battery capacity excess this value, 67 | # the full-capacity format will be displayed. 68 | battery-full-at = 95 69 | 70 | # battery and adapter 71 | battery-bat = BAT1 72 | battery-adp = ACAD 73 | 74 | # soundcard setting 75 | master-soundcard = default 76 | speaker-soundcard = default 77 | headphone-soundcard = default 78 | master-mixer = Master 79 | 80 | # mpd service connection setting 81 | mpd-host = 127.0.0.1 82 | mpd-port = 6600 83 | 84 | thermal-zone = 7 85 | # Base temperature for where to start the ramp (in degrees celsius) 86 | base-temperature = 20 87 | # Threshold temperature to display warning label (in degrees celsius) 88 | warn-temperature = 70 89 | 90 | # GitHub personal token, generate from https://github.com/settings/tokens/new?scopes=notifications&description=Notifier+for+Polybar 91 | # where select at least `notifications` option 92 | github-token = 00ed987a6d7efd532c5b4ca0849c2803228d1b5d 93 | 94 | # notify module setting 95 | notify-click-left = xdotool key control+grave 96 | 97 | # network module setting 98 | network-click-left = i3-msg workspace 2 99 | 100 | # i3 101 | # Only show workspaces defined on the same output as the bar 102 | # 103 | # Useful if you want to show monitor specific workspaces 104 | # on different bars 105 | # 106 | # Default: false 107 | i3-pin-workspaces = false 108 | -------------------------------------------------------------------------------- /.config/polybar/nord-down: -------------------------------------------------------------------------------- 1 | ; vim:ft=dosini 2 | [module/powermenu] 3 | type = custom/menu 4 | 5 | expand-right = true 6 | 7 | label-open =  8 | label-open-foreground = #282828 9 | label-open-background = #ebdbb2 10 | label-open-padding = 3 11 | label-close =  12 | label-close-foreground = #282828 13 | label-close-background = ${colors.nord9} 14 | label-close-padding = 4 15 | 16 | menu-0-0 =  17 | menu-0-0-foreground = ${colors.urgent} 18 | menu-0-0-padding = 2 19 | menu-0-0-exec = shutdown 20 | menu-0-1 =  21 | menu-0-1-foreground = ${colors.warning} 22 | menu-0-1-padding = 2 23 | menu-0-1-exec = reboot 24 | menu-0-2 =  25 | menu-0-2-foreground = ${colors.warning} 26 | menu-0-2-padding = 2 27 | menu-0-2-exec = systemctl suspend 28 | 29 | [module/cpu] 30 | type = internal/cpu 31 | interval = 1 32 | 33 | format =