From de542b3e97fba3fac10093725f31fea063d0aa70 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Sun, 21 Jul 2019 03:27:31 +0200 Subject: [PATCH] initial commit for new repo --- .config/.ncmpcpp/bindings | 543 +++++ .config/.ncmpcpp/config | 547 +++++ .config/compton.conf | 270 +++ .config/i3/battery.sh | 6 + .config/i3/config | 267 +++ .config/mpd/mpd.conf | 31 + .config/mpd/sticker.sql | Bin 0 -> 12288 bytes .config/mpv/input.conf | 182 ++ .config/mpv/motioninterpolation.vpy | 74 + .config/mpv/mpv.conf | 153 ++ .config/neofetch/config.conf | 711 +++++++ .config/polybar/config | 534 +++++ .config/polybar/launch.sh | 19 + .config/ranger/commands.py | 62 + .config/ranger/commands_full.py | 1769 ++++++++++++++++ .config/ranger/rc.conf | 660 ++++++ .config/ranger/rifle.conf | 226 ++ .config/ranger/scope.sh | 178 ++ .config/redshift.conf | 45 + .config/rofi/config | 3 + .config/rofi/wifi | 5 + .gitattributes | 1 + .gitignore | 36 + .gitignore_global | 1 + .nanorc | 32 + .rustfmt.toml | 3 + .signature | 6 + .spacemacs | 1107 ++++++++++ .zshrc | 224 ++ ArjLinugz-xDDDDDDDDDDDD-neofetch.png | Bin 0 -> 29242 bytes CODE_OF_CONDUCT.md | 1 + LICENSE.md | 675 ++++++ README.md | 65 + config.fish | 12 + dev/conan-project/.clang-format | 58 + dev/conan-project/.gitignore | 179 ++ dev/conan-project/CMakeLists.txt | 56 + dev/conan-project/LICENSE | 21 + dev/conan-project/README.org | 60 + dev/conan-project/cmake/functions.cmake | 12 + dev/conan-project/conanfile.py | 16 + dev/conan-project/doc/Doxyfile | 2495 +++++++++++++++++++++++ dev/conan-project/src/main.cc | 6 + dev/conan-project/src/main.cpp | 16 + dev/conan-project/tests/tests.cc | 16 + dev/templateC++/.clang-format | 58 + dev/templateC++/.gitignore | 4 + dev/templateC++/CMakeLists.txt | 26 + dev/templateC++/Makefile | 12 + dev/templateC++/README.org | 14 + dev/templateC++/doc/Doxyfile | 2495 +++++++++++++++++++++++ dev/templateC++/src/main.cc | 6 + dev/templateC/.clang-format | 58 + dev/templateC/.gitignore | 4 + dev/templateC/CMakeLists.txt | 74 + dev/templateC/Makefile | 12 + dev/templateC/README.org | 14 + dev/templateC/cmake/functions.cmake | 12 + dev/templateC/doc/Doxyfile | 2440 ++++++++++++++++++++++ dev/templateC/src/main.c | 6 + enable_thouch.sh | 5 + eshell-alias | 50 + fishfunctions/4chandl.fish | 22 + fishfunctions/cnew.fish | 31 + fishfunctions/cnew.man | 26 + fishfunctions/cnew.org | 16 + fishfunctions/cppnew.fish | 49 + fishfunctions/cppnew.man | 30 + fishfunctions/cppnew.org | 18 + fishfunctions/mcd.fish | 4 + fishfunctions/rainymood.fish | 22 + fishfunctions/we.fish | 7 + france_ardeche_landscape_thinkpad.jpg | Bin 0 -> 351143 bytes org/theme-readtheorg.setup | 9 + private/.gitignore | 2 + spacemacs-layers/conlanging/README.org | 32 + spacemacs-layers/conlanging/funcs.el | 110 + spacemacs-layers/conlanging/packages.el | 16 + xresources/.Xresources | 20 + xsetwacom-my-preferences | 89 + 80 files changed, 17176 insertions(+) create mode 100644 .config/.ncmpcpp/bindings create mode 100644 .config/.ncmpcpp/config create mode 100644 .config/compton.conf create mode 100755 .config/i3/battery.sh create mode 100644 .config/i3/config create mode 100644 .config/mpd/mpd.conf create mode 100644 .config/mpd/sticker.sql create mode 100644 .config/mpv/input.conf create mode 100644 .config/mpv/motioninterpolation.vpy create mode 100644 .config/mpv/mpv.conf create mode 100644 .config/neofetch/config.conf create mode 100644 .config/polybar/config create mode 100755 .config/polybar/launch.sh create mode 100644 .config/ranger/commands.py create mode 100644 .config/ranger/commands_full.py create mode 100644 .config/ranger/rc.conf create mode 100644 .config/ranger/rifle.conf create mode 100755 .config/ranger/scope.sh create mode 100644 .config/redshift.conf create mode 100644 .config/rofi/config create mode 100644 .config/rofi/wifi create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .gitignore_global create mode 100644 .nanorc create mode 100644 .rustfmt.toml create mode 100644 .signature create mode 100644 .spacemacs create mode 100755 .zshrc create mode 100644 ArjLinugz-xDDDDDDDDDDDD-neofetch.png create mode 100644 CODE_OF_CONDUCT.md create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 config.fish create mode 100644 dev/conan-project/.clang-format create mode 100644 dev/conan-project/.gitignore create mode 100644 dev/conan-project/CMakeLists.txt create mode 100644 dev/conan-project/LICENSE create mode 100644 dev/conan-project/README.org create mode 100644 dev/conan-project/cmake/functions.cmake create mode 100644 dev/conan-project/conanfile.py create mode 100755 dev/conan-project/doc/Doxyfile create mode 100644 dev/conan-project/src/main.cc create mode 100644 dev/conan-project/src/main.cpp create mode 100644 dev/conan-project/tests/tests.cc create mode 100644 dev/templateC++/.clang-format create mode 100644 dev/templateC++/.gitignore create mode 100644 dev/templateC++/CMakeLists.txt create mode 100644 dev/templateC++/Makefile create mode 100644 dev/templateC++/README.org create mode 100755 dev/templateC++/doc/Doxyfile create mode 100644 dev/templateC++/src/main.cc create mode 100644 dev/templateC/.clang-format create mode 100644 dev/templateC/.gitignore create mode 100644 dev/templateC/CMakeLists.txt create mode 100644 dev/templateC/Makefile create mode 100644 dev/templateC/README.org create mode 100644 dev/templateC/cmake/functions.cmake create mode 100644 dev/templateC/doc/Doxyfile create mode 100644 dev/templateC/src/main.c create mode 100755 enable_thouch.sh create mode 100644 eshell-alias create mode 100755 fishfunctions/4chandl.fish create mode 100644 fishfunctions/cnew.fish create mode 100644 fishfunctions/cnew.man create mode 100644 fishfunctions/cnew.org create mode 100644 fishfunctions/cppnew.fish create mode 100644 fishfunctions/cppnew.man create mode 100644 fishfunctions/cppnew.org create mode 100644 fishfunctions/mcd.fish create mode 100644 fishfunctions/rainymood.fish create mode 100644 fishfunctions/we.fish create mode 100644 france_ardeche_landscape_thinkpad.jpg create mode 100644 org/theme-readtheorg.setup create mode 100644 private/.gitignore create mode 100644 spacemacs-layers/conlanging/README.org create mode 100644 spacemacs-layers/conlanging/funcs.el create mode 100644 spacemacs-layers/conlanging/packages.el create mode 100644 xresources/.Xresources create mode 100755 xsetwacom-my-preferences diff --git a/.config/.ncmpcpp/bindings b/.config/.ncmpcpp/bindings new file mode 100644 index 0000000..ab4c52a --- /dev/null +++ b/.config/.ncmpcpp/bindings @@ -0,0 +1,543 @@ +############################################################## +## This is the example bindings file. Copy it to ## +## ~/.ncmpcpp/bindings or $XDG_CONFIG_HOME/ncmpcpp/bindings ## +## and set up your preferences ## +############################################################## +## +##### General rules ##### +## +## 1) Because each action has runtime checks whether it's +## ok to run it, a few actions can be bound to one key. +## Actions will be bound in order given in configuration +## file. When a key is pressed, first action in order +## will test itself whether it's possible to run it. If +## test succeeds, action is executed and other actions +## bound to this key are ignored. If it doesn't, next +## action in order tests itself etc. +## +## 2) It's possible to bind more that one action at once +## to a key. It can be done using the following syntax: +## +## def_key "key" +## action1 +## action2 +## ... +## +## This creates a chain of actions. When such chain is +## executed, each action in chain is run until the end of +## chain is reached or one of its actions fails to execute +## due to its requirements not being met. If multiple actions +## and/or chains are bound to the same key, they will be +## consecutively run until one of them gets fully executed. +## +## 3) When ncmpcpp starts, bindings configuration file is +## parsed and then ncmpcpp provides "missing pieces" +## of default keybindings. If you want to disable some +## bindings, there is a special action called 'dummy' +## for that purpose. Eg. if you want to disable ability +## to crop playlists, you need to put the following +## into configuration file: +## +## def_key "C" +## dummy +## +## After that ncmpcpp will not bind any default action +## to this key. +## +## 4) To let you write simple macros, the following special +## actions are provided: +## +## - push_character "character" - pushes given special +## character into input queue, so it will be immediately +## picked by ncmpcpp upon next call to readKey function. +## Accepted values: mouse, up, down, page_up, page_down, +## home, end, space, enter, insert, delete, left, right, +## tab, ctrl-a, ctrl-b, ..., ctrl-z, ctrl-[, ctrl-\\, +## ctrl-], ctrl-^, ctrl-_, f1, f2, ..., f12, backspace. +## In addition, most of these names can be prefixed with +## alt-/ctrl-/shift- to be recognized with the appropriate +## modifier key(s). +## +## - push_characters "string" - pushes given string into +## input queue. +## +## - require_runnable "action" - checks whether given action +## is runnable and fails if it isn't. This is especially +## useful when mixed with previous two functions. Consider +## the following macro definition: +## +## def_key "key" +## push_characters "custom_filter" +## apply_filter +## +## If apply_filter can't be currently run, we end up with +## sequence of characters in input queue which will be +## treated just as we typed them. This may lead to unexpected +## results (in this case 'c' will most likely clear current +## playlist, 'u' will trigger database update, 's' will stop +## playback etc.). To prevent such thing from happening, we +## need to change above definition to this one: +## +## def_key "key" +## require_runnable "apply_filter" +## push_characters "custom_filter" +## apply_filter +## +## Here, first we test whether apply_filter can be actually run +## before we stuff characters into input queue, so if condition +## is not met, whole chain is aborted and we're fine. +## +## - require_screen "screen" - checks whether given screen is +## currently active. accepted values: browser, clock, help, +## media_library, outputs, playlist, playlist_editor, +## search_engine, tag_editor, visualizer, last_fm, lyrics, +## selected_items_adder, server_info, song_info, +## sort_playlist_dialog, tiny_tag_editor. +## +## - run_external_command "command" - runs given command using +## system() function. +## +## 5) In addition to binding to a key, you can also bind actions +## or chains of actions to a command. If it comes to commands, +## syntax is very similar to defining keys. Here goes example +## definition of a command: +## +## def_command "quit" [deferred] +## stop +## quit +## +## If you execute the above command (which can be done by +## invoking action execute_command, typing 'quit' and pressing +## enter), ncmpcpp will stop the player and then quit. Note the +## presence of word 'deferred' enclosed in square brackets. It +## tells ncmpcpp to wait for confirmation (ie. pressing enter) +## after you typed quit. Instead of 'deferred', 'immediate' +## could be used. Then ncmpcpp will not wait for confirmation +## (enter) and will execute the command the moment it sees it. +## +## Note: while command chains are executed, internal environment +## update (which includes current window refresh and mpd status +## update) is not performed for performance reasons. However, it +## may be desirable to do so in some situration. Therefore it's +## possible to invoke by hand by performing 'update enviroment' +## action. +## +## Note: There is a difference between: +## +## def_key "key" +## action1 +## +## def_key "key" +## action2 +## +## and +## +## def_key "key" +## action1 +## action2 +## +## First one binds two single actions to the same key whilst +## second one defines a chain of actions. The behavior of +## these two is different and is described in (1) and (2). +## +## Note: Function def_key accepts non-ascii characters. +## +##### List of unbound actions ##### +## +## The following actions are not bound to any key/command: +## +## - set_volume +## +# +#def_key "mouse" +# mouse_event +# +#def_key "up" +# scroll_up +# +#def_key "shift-up" +# select_item +# scroll_up +# +#def_key "down" +# scroll_down +# +#def_key "shift-down" +# select_item +# scroll_down +# +#def_key "[" +# scroll_up_album +# +#def_key "]" +# scroll_down_album +# +#def_key "{" +# scroll_up_artist +# +#def_key "}" +# scroll_down_artist +# +#def_key "page_up" +# page_up +# +#def_key "page_down" +# page_down +# +#def_key "home" +# move_home +# +#def_key "end" +# move_end +# +#def_key "insert" +# select_item +# +#def_key "enter" +# enter_directory +# +#def_key "enter" +# toggle_output +# +#def_key "enter" +# run_action +# +#def_key "enter" +# play_item +# +#def_key "space" +# add_item_to_playlist +# +#def_key "space" +# toggle_lyrics_update_on_song_change +# +#def_key "space" +# toggle_visualization_type +# +#def_key "delete" +# delete_playlist_items +# +#def_key "delete" +# delete_browser_items +# +#def_key "delete" +# delete_stored_playlist +# +#def_key "right" +# next_column +# +#def_key "right" +# slave_screen +# +#def_key "right" +# volume_up +# +#def_key "+" +# volume_up +# +#def_key "left" +# previous_column +# +#def_key "left" +# master_screen +# +#def_key "left" +# volume_down +# +#def_key "-" +# volume_down +# +#def_key ":" +# execute_command +# +#def_key "tab" +# next_screen +# +#def_key "shift-tab" +# previous_screen +# +#def_key "f1" +# show_help +# +#def_key "1" +# show_playlist +# +#def_key "2" +# show_browser +# +#def_key "2" +# change_browse_mode +# +#def_key "3" +# show_search_engine +# +#def_key "3" +# reset_search_engine +# +#def_key "4" +# show_media_library +# +#def_key "4" +# toggle_media_library_columns_mode +# +#def_key "5" +# show_playlist_editor +# +#def_key "6" +# show_tag_editor +# +#def_key "7" +# show_outputs +# +#def_key "8" +# show_visualizer +# +#def_key "=" +# show_clock +# +#def_key "@" +# show_server_info +# +#def_key "s" +# stop +# +#def_key "p" +# pause +# +#def_key ">" +# next +# +#def_key "<" +# previous +# +#def_key "ctrl-h" +# jump_to_parent_directory +# +#def_key "ctrl-h" +# replay_song +# +#def_key "backspace" +# jump_to_parent_directory +# +#def_key "backspace" +# replay_song +# +#def_key "f" +# seek_forward +# +#def_key "b" +# seek_backward +# +#def_key "r" +# toggle_repeat +# +#def_key "z" +# toggle_random +# +#def_key "y" +# save_tag_changes +# +#def_key "y" +# start_searching +# +#def_key "y" +# toggle_single +# +#def_key "R" +# toggle_consume +# +#def_key "Y" +# toggle_replay_gain_mode +# +#def_key "T" +# toggle_add_mode +# +#def_key "|" +# toggle_mouse +# +#def_key "#" +# toggle_bitrate_visibility +# +#def_key "Z" +# shuffle +# +#def_key "x" +# toggle_crossfade +# +#def_key "X" +# set_crossfade +# +#def_key "u" +# update_database +# +#def_key "ctrl-s" +# sort_playlist +# +#def_key "ctrl-s" +# toggle_browser_sort_mode +# +#def_key "ctrl-s" +# toggle_media_library_sort_mode +# +#def_key "ctrl-r" +# reverse_playlist +# +#def_key "ctrl-f" +# apply_filter +# +#def_key "ctrl-_" +# select_found_items +# +#def_key "/" +# find +# +#def_key "/" +# find_item_forward +# +#def_key "?" +# find +# +#def_key "?" +# find_item_backward +# +#def_key "." +# next_found_item +# +#def_key "," +# previous_found_item +# +#def_key "w" +# toggle_find_mode +# +#def_key "e" +# edit_song +# +#def_key "e" +# edit_library_tag +# +#def_key "e" +# edit_library_album +# +#def_key "e" +# edit_directory_name +# +#def_key "e" +# edit_playlist_name +# +#def_key "e" +# edit_lyrics +# +#def_key "i" +# show_song_info +# +#def_key "I" +# show_artist_info +# +#def_key "g" +# jump_to_position_in_song +# +#def_key "l" +# show_lyrics +# +#def_key "ctrl-v" +# select_range +# +#def_key "v" +# reverse_selection +# +#def_key "V" +# remove_selection +# +#def_key "B" +# select_album +# +#def_key "a" +# add_selected_items +# +#def_key "c" +# clear_playlist +# +#def_key "c" +# clear_main_playlist +# +#def_key "C" +# crop_playlist +# +#def_key "C" +# crop_main_playlist +# +#def_key "m" +# move_sort_order_up +# +#def_key "m" +# move_selected_items_up +# +#def_key "n" +# move_sort_order_down +# +#def_key "n" +# move_selected_items_down +# +#def_key "M" +# move_selected_items_to +# +#def_key "A" +# add +# +#def_key "S" +# save_playlist +# +#def_key "o" +# jump_to_playing_song +# +#def_key "G" +# jump_to_browser +# +#def_key "G" +# jump_to_playlist_editor +# +#def_key "~" +# jump_to_media_library +# +#def_key "E" +# jump_to_tag_editor +# +#def_key "U" +# toggle_playing_song_centering +# +#def_key "P" +# toggle_display_mode +# +#def_key "\\" +# toggle_interface +# +#def_key "!" +# toggle_separators_between_albums +# +#def_key "L" +# toggle_lyrics_fetcher +# +#def_key "F" +# fetch_lyrics_in_background +# +#def_key "alt-l" +# toggle_fetching_lyrics_in_background +# +#def_key "ctrl-l" +# toggle_screen_lock +# +#def_key "`" +# toggle_library_tag_type +# +#def_key "`" +# refetch_lyrics +# +#def_key "`" +# add_random_items +# +#def_key "ctrl-p" +# set_selected_items_priority +# +#def_key "q" +# quit +# \ No newline at end of file diff --git a/.config/.ncmpcpp/config b/.config/.ncmpcpp/config new file mode 100644 index 0000000..56e9247 --- /dev/null +++ b/.config/.ncmpcpp/config @@ -0,0 +1,547 @@ +############################################################################## +## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ## +## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences. ## +############################################################################## +# +##### directories ###### +## +## Directory for storing ncmpcpp related files. Changing it is useful if you +## want to store everything somewhere else and provide command line setting for +## alternative location to config file which defines that while launching +## ncmpcpp. +## +# +ncmpcpp_directory = ~/.ncmpcpp +# +## +## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other +## MPD clients (eg. ncmpc) also use that location. +## +# +#lyrics_directory = ~/.lyrics +# +##### connection settings ##### +# +mpd_host = localhost +# +mpd_port = 6600 +# +#mpd_connection_timeout = 5 +# +## Needed for tag editor and file operations to work. +## +mpd_music_dir = ~/Music +# +#mpd_crossfade_time = 5 +# +##### music visualizer ##### +## +## Note: In order to make music visualizer work you'll need to use mpd fifo +## output, whose format parameter has to be set to 44100:16:1 for mono +## visualization or 44100:16:2 for stereo visualization. Example configuration +## (it has to be put into mpd.conf): +## +## audio_output { +## type "fifo" +## name "Visualizer feed" +## path "/tmp/mpd.fifo" +## format "44100:16:2" +## } +## +# +visualizer_fifo_path = /tmp/mpd.fifo +# +## +## Note: Below parameter is needed for ncmpcpp to determine which output +## provides data for visualizer and thus allow syncing between visualization and +## sound as currently there are some problems with it. +## +# +visualizer_output_name = "my_fifo" +# +## +## If you set format to 44100:16:2, make it 'yes'. +## +visualizer_in_stereo = yes +# +## +## Note: Below parameter defines how often ncmpcpp has to "synchronize" +## visualizer and audio outputs. 30 seconds is optimal value, but if you +## experience synchronization problems, set it to lower value. Keep in mind +## that sane values start with >=10. +## +# +visualizer_sync_interval = 30 +# +## +## Note: To enable spectrum frequency visualization you need to compile ncmpcpp +## with fftw3 support. +## +# +## Available values: spectrum, wave, wave_filled, ellipse. +## +visualizer_type = "spectrum" +# +# visualizer_look = "+|" +visualizer_look = "▋▋" +# +visualizer_color = blue, cyan, green, yellow, magenta, red +# +## Alternative subset of 256 colors for terminals that support it. +## +# visualizer_color = "white" +# +##### system encoding ##### +## +## ncmpcpp should detect your charset encoding but if it failed to do so, you +## can specify charset encoding you are using here. +## +## Note: You can see whether your ncmpcpp build supports charset detection by +## checking output of `ncmpcpp --version`. +## +## Note: Since MPD uses UTF-8 by default, setting this option makes sense only +## if your encoding is different. +## +# +#system_encoding = "" +# +##### delays ##### +# +## Time of inactivity (in seconds) after playlist highlighting will be disabled +## (0 = always on). +## +#playlist_disable_highlight_delay = 5 +# +## Defines how long messages are supposed to be visible. +## +#message_delay_time = 5 +# +##### song format ##### +## +## For a song format you can use: +## +## %l - length +## %f - filename +## %D - directory +## %a - artist +## %A - album artist +## %t - title +## %b - album +## %y - date +## %n - track number (01/12 -> 01) +## %N - full track info (01/12 -> 01/12) +## %g - genre +## %c - composer +## %p - performer +## %d - disc +## %C - comment +## %P - priority +## $R - begin right alignment +## +## If you want to make sure that a part of the format is displayed only when +## certain tags are present, you can archieve it by grouping them with brackets, +## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are +## present or '' otherwise. It is also possible to define a list of +## alternatives by providing several groups and separating them with '|', +## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is +## not present. +## +## Note: If you want to set limit on maximal length of a tag, just put the +## appropriate number between % and character that defines tag type, e.g. to +## make album take max. 20 terminal cells, use '%20b'. +## +## In addition, formats support markers used for text attributes. They are +## followed by character '$'. After that you can put: +## +## - 0 - default window color (discards all other colors) +## - 1 - black +## - 2 - red +## - 3 - green +## - 4 - yellow +## - 5 - blue +## - 6 - magenta +## - 7 - cyan +## - 8 - white +## - 9 - end of current color +## - b - bold text +## - u - underline text +## - r - reverse colors +## - a - use alternative character set +## +## If you don't want to use a non-color attribute anymore, just put it again, +## but this time insert character '/' between '$' and attribute character, +## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with +## reversed colors. +## +## If you want to use 256 colors and/or background colors in formats (the naming +## scheme is described below in section about color definitions), it can be done +## with the syntax $(COLOR), e.g. to set the artist tag to one of the +## non-standard colors and make it have yellow background, you need to write +## $(197_yellow)%a$(end). Note that for standard colors this is interchangable +## with attributes listed above. +## +## Note: colors can be nested. +## +# +song_list_format = (6)[]{} (23)[red]{a} (26)[yellow]{t|f} (40)[green]{b} (4)[blue]{l} +# +#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f} +# +#song_library_format = {%n - }{%t}|{%f} +# +#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b +# +#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D} +# +#current_item_prefix = $(yellow)$r +# +#current_item_suffix = $/r$(end) +# +#current_item_inactive_column_prefix = $(white)$r +# +#current_item_inactive_column_suffix = $/r$(end) +# +now_playing_prefix = $b +# +now_playing_suffix = $8$/b +# +#browser_playlist_prefix = "$2playlist$9 " +# +#selected_item_prefix = $6 +# +#selected_item_suffix = $9 +# +#modified_item_prefix = $3> $9 +# +## +## Note: attributes are not supported for the following variables. +## +#song_window_title_format = {%a - }{%t}|{%f} +## +## Note: Below variables are used for sorting songs in browser. The sort mode +## determines how songs are sorted, and can be used in combination with a sort +## format to specify a custom sorting format. Available values for +## browser_sort_mode are "name", "mtime", "format" and "noop". +## +# +#browser_sort_mode = name +# +#browser_sort_format = {%a - }{%t}|{%f} {(%l)} +# +##### columns settings ##### +## +## syntax of song columns list format is "column column etc." +## +## - syntax for each column is: +## +## (width of the column)[color of the column]{displayed tag} +## +## Note: Width is by default in %, if you want a column to have fixed size, add +## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of +## screen (so the real width will depend on actual screen size), whereas +## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen +## is. +## +## - color is optional (if you want the default one, leave the field empty). +## +## Note: You can give a column additional attributes by putting appropriate +## character after displayed tag character. Available attributes are: +## +## - r - column will be right aligned +## - E - if tag is empty, empty tag marker won't be displayed +## +## You can also: +## +## - give a column custom name by putting it after attributes, separated with +## character ':', e.g. {lr:Length} gives you right aligned column of lengths +## named "Length". +## +## - define sequence of tags, that have to be displayed in case predecessor is +## empty in a way similar to the one in classic song format, i.e. using '|' +## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to +## display artist tag and then composer and performer if previous ones are not +## available. +## +# +song_columns_list_format = (6)[]{} (23)[red]{a} (26)[yellow]{t|f} (40)[green]{b} (4)[blue]{l} +# +##### various settings ##### +# +## +## Note: Custom command that will be executed each time song changes. Useful for +## notifications etc. +## +# execute_on_song_change = "~/.ncmpcpp/art.sh" +# song_list_format = " $2%t $R$5%a " +# +## +## Note: Custom command that will be executed each time player state +## changes. The environment variable MPD_PLAYER_STATE is set to the current +## state (either unknown, play, pause, or stop) for its duration. +## +# +#execute_on_player_state_change = "" +# +#playlist_show_mpd_host = no +# +#playlist_show_remaining_time = no +# +playlist_shorten_total_times = yes +# +#playlist_separate_albums = no +# +## +## Note: Possible display modes: classic, columns. +## +#playlist_display_mode = columns +# +browser_display_mode = "columns" +# +search_engine_display_mode = "columns" +# +playlist_editor_display_mode = "columns" +# +#discard_colors_if_item_is_selected = yes +# +#show_duplicate_tags = yes +# +#incremental_seeking = yes +# +#seek_time = 1 +# +#volume_change_step = 2 +# +#autocenter_mode = no +# +#centered_cursor = no +# +## +## Note: You can specify third character which will be used to build 'empty' +## part of progressbar. +## +#progressbar_look = => +progressbar_look = "─o " +# +## Available values: database, playlist. +## +#default_place_to_search_in = database +# +## Available values: classic, alternative. +## +#user_interface = classic +# +#data_fetching_delay = yes +# +## Available values: artist, album_artist, date, genre, composer, performer. +## +#media_library_primary_tag = artist +# +#media_library_albums_split_by_date = yes +# +## Available values: wrapped, normal. +## +#default_find_mode = wrapped +# +#default_tag_editor_pattern = %n - %t +# +header_visibility = no +# +statusbar_visibility = no +# +titles_visibility = no +# +#header_text_scrolling = yes +# +#cyclic_scrolling = no +# +#lines_scrolled = 2 +# +#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet +# +#follow_now_playing_lyrics = no +# +#fetch_lyrics_for_current_song_in_background = no +# +#store_lyrics_in_song_dir = no +# +#generate_win32_compatible_filenames = yes +# +allow_for_physical_item_deletion = yes +# +## +## Note: If you set this variable, ncmpcpp will try to get info from last.fm in +## language you set and if it fails, it will fall back to english. Otherwise it +## will use english the first time. +## +## Note: Language has to be expressed as an ISO 639 alpha-2 code. +## +#lastfm_preferred_language = en +# +#space_add_mode = add_remove +# +#show_hidden_files_in_local_browser = no +# +## +## How shall screen switcher work? +## +## - "previous" - switch between the current and previous screen. +## - "screen1,...,screenN" - switch between given sequence of screens. +## +## Screens available for use: help, playlist, browser, search_engine, +## media_library, playlist_editor, tag_editor, outputs, visualizer, clock, +## lyrics, last_fm. +## +#screen_switcher_mode = playlist, browser +# +## +## Note: You can define startup screen by choosing screen from the list above. +## +#startup_screen = playlist +# +## +## Note: You can define startup slave screen by choosing screen from the list +## above or an empty value for no slave screen. +## +#startup_slave_screen = "" +# +#startup_slave_screen_focus = no +# +## +## Default width of locked screen (in %). Acceptable values are from 20 to 80. +## +# +#locked_screen_width_part = 50 +# +#ask_for_locked_screen_width_part = yes +# +#jump_to_now_playing_song_at_start = yes +# +#ask_before_clearing_playlists = yes +# +#clock_display_seconds = no +# +#display_volume_level = yes +# +display_bitrate = no +# +#display_remaining_time = no +# +## Available values: none, basic, extended, perl. +## +#regular_expressions = perl +# +## +## Note: if below is enabled, ncmpcpp will ignore leading "The" word while +## sorting items in browser, tags in media library, etc. +## +#ignore_leading_the = no +# +## +## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and +## filtering lists. This takes an effect only if boost was compiled with ICU +## support. +## +#ignore_diacritics = no +# +#block_search_constraints_change_if_items_found = yes +# +mouse_support = no +# +#mouse_list_scroll_whole_page = yes +# +#empty_tag_marker = +# +#tags_separator = " | " +# +#tag_editor_extended_numeration = no +# +#media_library_sort_by_mtime = no +# +enable_window_title = yes +# +## +## Note: You can choose default search mode for search engine. Available modes +## are: +## +## - 1 - use mpd built-in searching (no regexes, pattern matching) +## +## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but +## if your mpd is on a remote machine, downloading big database to process +## it can take a while +## +## - 3 - match only exact values (this mode uses mpd function for searching in +## database and local one for searching in current playlist) +## +# +#search_engine_default_search_mode = 1 +# +external_editor = nano +# +## Note: set to yes if external editor is a console application. +## +#use_console_editor = yes +# +##### colors definitions ##### +## +## It is possible to set a background color by setting a color value +## "_", e.g. red_black will set foregound color to red +## and background color to black. +## +## In addition, for terminals that support 256 colors it is possible to set one +## of them by using a number in range [1, 256] instead of color name, +## e.g. numerical value corresponding to red_black is 2_1. To find out if the +## terminal supports 256 colors, run ncmpcpp and check out the bottom of the +## help screen for list of available colors and their numerical values. +## +## What is more, there are two special values for the background color: +## "transparent" and "current". The first one explicitly sets the background to +## be transparent, while the second one allows you to preserve current +## background color and change only the foreground one. It's used implicitly +## when background color is not specified. +## +## Moreover, it is possible to attach format information to selected color +## variables by appending to their end a colon followed by one or more format +## flags, e.g. black:b or red:ur. The following variables support this syntax: +## visualizer_color, color1, color2, empty_tag_color, volume_color, +## state_line_color, state_flags_color, progressbar_color, +## progressbar_elapsed_color, player_state_color, statusbar_time_color, +## alternative_ui_separator_color. +## +## Note: due to technical limitations of older ncurses version, if 256 colors +## are used there is a possibility that you'll be able to use only colors with +## transparent background. +# +colors_enabled = yes +# +#empty_tag_color = cyan +# +#header_window_color = default +# +volume_color = default +# +#state_line_color = default +# +#state_flags_color = default:b +# +#main_window_color = yellow +# +#color1 = white +# +#color2 = green +# +progressbar_color = "black" +# +progressbar_elapsed_color = "white" +# +statusbar_color = "white" +# +#statusbar_time_color = default:b +# +#player_state_color = default:b +# +#alternative_ui_separator_color = black:b +# +#window_border_color = green +# +#active_window_border = red +# diff --git a/.config/compton.conf b/.config/compton.conf new file mode 100644 index 0000000..ce1e8fe --- /dev/null +++ b/.config/compton.conf @@ -0,0 +1,270 @@ +################################################################################ +# +# Backend +# +################################################################################ + +# Backend to use: "xrender" or "glx". +# GLX backend is typically much faster but depends on a sane driver. +# backend = "xrender"; +backend = "glx"; + +################################################################################ +# +# GLX Backend +# +################################################################################ + +glx-no-stencil = true; + +# GLX backend: Copy unmodified regions from front buffer instead of redrawing +# them all. +glx-copy-from-front = false; + +# GLX backend: Use MESA_copy_sup_bufer to do bartial screen update. +# Overrides --glx-copy-from-front +# glx-use-copysubbuffermesa = true; + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, but is +# known to break things on some drivers (LLVMpipe). +# Recommended if it works. +# glx-no-rebind-pixmap = true; + +# GLX backend: GLX buffer swap method we assume. +# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). +# undefined is the slowest and the safest, and the default value. +# copy is fastest, but may fail on some drivers. +# 2-5 are gradually slower but safer (6 is still faster than 0). +# Usually, double buffer means 2, triple buffer means 3. +# buffer-age means auto-detect using GTX_EXT_buffer_age, supported by some +# drivers. +# Useless with --glx-use-copysubbeffermesa. +# Partially breaks --resize-damage +# Defaults to undefined; +glx-swap-method = "undefined"; + +# glx-use-gpushader4 = true; + +################################################################################ +# +# X Render Backend +# +################################################################################ + +# xrender-sync = true; +# xrender-sync-fence = true; + +################################################################################ +# +# Shadow +# +################################################################################ + +# Enabled client-side shadows on windows. +shadow = true; +# Don’t draw shadows on DND windows. +no-dnd-shadow = true; +# Avoid drawing shadows on dock/panel windows. +no-dock-shadow = true; +# Zero the part of the shadow’s mask behind the window. Fix some weirdness with +# ARGB windows. +clear-shadow = true; +# The blur radius for the shadow (default 12) +shadow-radius = 7; +# The left offset for shadows. (default -15) +shadow-offset-x = -5; +# The top offset for shadows. (default -15) +shadow-offset-y = -5; +# The translucency for shadows. (defalt .75) +shadow-opacity = 0.85; + +# Set if you want different colour shadows +# RGB calculate: 128*100/255/100 = 0.50 +# shadow-red = 0.0; +# shadow-green = 0.0; +# shadow-blue = 0.0; + +# The shadow exclude options are helpful if you have shadows enabled. Due to the +# way compton draws its shadows, certain applications will have visual glitches. +# (most applications are fine, only apps that do weird things with xshapes or +# argb are affected) +shadow-exclude = [ + "name = 'Notification'", + # "class_g = 'Conky'", + # "class_g ?= 'Notify-osd'", + # "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; +# Avoid drawing shadow on all shaped windows +# (see also: --detect-rounded-corners) +shadow-ignore-shaped = false; + +# shadow-exclude = "n:e:Notification"; +# shadow-exclude-reg = "x10+0+0"; +# xinerama-shadow-crop = true; + +################################################################################ +# +# Opacity +# +################################################################################ + +menu-opacity = 0.9; +inactive-opacity = 0.6; +active-opacity = 1; +frame-opacity = 0.6; +inactive-opacity-override = true; +alpha-step = 0.06; + +# Dim inactive windows. (0.0 - 1.0) +# inactive-dim = 0.2; +# Do not let dimness adjust based on window opacity +# inactive-dim-fixed = true; + +# Blur backgound of transparent windows. Bad performance with X Render backend. +# GLX is preffered. +blur-method = "kawase"; +blur-strength = 12; +blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +blur-background = true; +# Blur background of opaque windows with transparent frames as well. +# blur-background-frame = true; +# Do not let blur radius adjust based on window opacity +blur-background-fixed = false; +blur-background-exclude = [ + "window_type = 'desktop'", + "class_g = 'Polybar'", + "_GTK_FRAME_EXTENTS@:c" +]; +opacity-rule = [ + "70:class_g = 'UXTerm'", + "65:class_g = 'Polybar'", + "80:class_g = 'St'" +]; + +################################################################################ +# +# Fading +# +################################################################################ + +# Fade windows during opacity changes +fading = true; +# The time between steps in a fade in milliseconds. (default 10) +fade-delta = 50; +# Opacity change between steps while fading in. (default 0.028) +fade-in-step = 0.09; +# Opacity change between steps while fading out. (default 0.03) +fade-out-step = 0.08; +# Fade windows in/out when opening/closing +no-fading-openclose = true; +# no-fading-destroyed-argb = true; + +# Specify a list of conditions of windows that should not be faded. +fade-exclude = [ ]; + +################################################################################ +# +# Other +# +################################################################################ + +# Try to detect WM windows and mark them as active +mark-wmwin-focused = true; +# Mark all non-WM but override-redirect windows active (e.g. menus) +mark-ovredir-focused = true; +# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of +# using FocusIn/Out events. +# Usually more reliable but depends on a EWMH-compliant WM. +use-ewmh-active-win = true; +# Detect rounded corners and treat them as rectangular when +# --shadow-ignore-shaped is on +detect-rounded-corners = true; + +# Detect _NET_WM_OPACITY on client windows, useful for window managers not +# passing _NET_WN_OPACITY of client windows to frame windows. +# This prefents opacity being ignored for some apps. +detect-client-opacity = true; + +# Specify refresh rate of the screen. +# If not specified or 0, compton will try detecting this with X RandR extension. +refresh-rate = 60; + +# Set VSync method. VSync methods currently available: +# none: No VSync +# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. +# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some +# drivers +# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on +# some drivers. +# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on +# some drivers. Work only with a GLX backend. Known to be most +# effective on many drivers. Does not actually control paint timing, +# only buffer swap is affected, so it doesn’t have the effect of +# --sw-opti unlike other methods. Experimental. +# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically +# the same as opengl-swc above, except the extension we use. +# (Note some VSync methods may not be enabled at compile time.) +vsync = "none"; + +# Enable DPE painting mode, inteded to use with VSync to (hopefuly) eliminate +# tearing. +# Reported to have no effect though. +dbe = false; +# Painting on X Composite overlay window. Recommended. +paint-on-overlay = true; + +# Limit comtpon to repaint at most every 1 / refresh_rate second to boost +# performance. +# This should not be used with --vsync drm/opengl/opengl-oml as they essentially +# do --sw-opti’ job already. +# Unless you wish to specify a lower refresh rate than the actual value. +sw-opti = false; + +# Unredirect all windows if a full-screen opaque window is detected, to maximize +# performance for full-screen windows, like games. +# Known to cause flickering when redirecting/unredirecting windows. +# paint-on-overlay may make the flickering less obvious. +# unredir-if-possible = true; +# unredir-if-possible-delay = 5000; +# unredir-if-possible-exclude = [ ]; + +# Specify a list of conditions of windows that should always be considered +# focused +focus-exclude = [ + # "class_g = 'Cairo-clock'" +]; + +# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group +# focused at the same time +detect-transient = true; +# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group +# focused at the same time. +# WM_TRANSIENT_FOR has a higher priority if --detect-transient is enabled, too. +detect-client-leader = true; + + +invert-color-include = [ ]; +# resize-damage = 1; + +################################################################################ +# +# Window type settings +# +################################################################################ + +wintypes: +{ + tooltip = + { + # fade: Fade the particular type of windows. + fade = false; + # shadow: Give those windows shadows. + shadow = true; + # opacity: Default opacity for the type of windows. + opacity: 0.85; + # focus: Whether to always consider windows of this type focused. + focus = true; + } +}; diff --git a/.config/i3/battery.sh b/.config/i3/battery.sh new file mode 100755 index 0000000..3d1bcd4 --- /dev/null +++ b/.config/i3/battery.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +BATTINFO=`acpi -b` +if [[ `echo $BATTINFO | grep Discharging` && `echo $BATTINFO | cut -f 5 -d " "` < 00:15:00 ]] ; then + DISPLAY=:0.0 /usr/bin/notify-send "low battery" "$BATTINFO" +fi diff --git a/.config/i3/config b/.config/i3/config new file mode 100644 index 0000000..8e05038 --- /dev/null +++ b/.config/i3/config @@ -0,0 +1,267 @@ +# Declaration of the mod key +set $mod Mod4 +set $alt Mod1 + +# Font for window titles +font pango:monospace 8 + +# Variables +set $up Up +set $down Down +set $left Left +set $right Right +set $exiti3 "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'" +set $lockscreen "Lucien Cartier-Tilet\n(Phuntsok Drak-pa)\n+33 (0)6 83 90 56 89" +set $rofiexec "rofi -combi-modi window,drun -show combi -mohh combi -m -1" +set $execgnus "exec emacsclient --create-frame --eval '(gnus)'" +set $term st + +# use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +################################################################################ +### Clients position ### +################################################################################ + +assign [class="discord"] 10 +assign [class="Emacs"] 2 +assign [class="Chromium"] 3 +assign [class="Nemo"] 4 +assign [class="Godot"] 5 +assign [class="Gimp*"] 6 +assign [class="Steam"] 9 + +################################################################################ +### Shortcuts ### +################################################################################ + +# start a terminal +bindsym $mod+Return exec $term +bindsym Ctrl+$mod+Return exec emacsclient --eval "(eshell-new)" --create-frame +bindsym $mod+$alt+Return split h;; exec $term +bindsym $mod+Shift+Return split v;; exec $term + +# kill focused window +bindsym $mod+q kill +bindsym $alt+F4 kill + +# program launcher +bindsym $mod+Shift+d exec --no-startup-id j4-dmenu-desktop +bindsym $mod+d exec --no-startup-id $rofiexec +bindsym $mod+w exec --no-startup-id rofi-wifi-menu + +# change focus +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# move focused window +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + +# Change split +bindsym $mod+h split h +bindsym $mod+v split v +bindsym $mod+t split toggle + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle +# center floating window +bindsym Ctrl+$mod+c move position center + +# Scratchpad +bindsym $mod+Shift+s move scratchpad +bindsym $mod+s scratchpad show + +# switch to workspace +bindsym $mod+1 workspace 1 +bindsym $mod+2 workspace 2 +bindsym $mod+3 workspace 3 +bindsym $mod+4 workspace 4 +bindsym $mod+5 workspace 5 +bindsym $mod+6 workspace 6 +bindsym $mod+7 workspace 7 +bindsym $mod+8 workspace 8 +bindsym $mod+9 workspace 9 +bindsym $mod+0 workspace 10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace 1 +bindsym $mod+Shift+2 move container to workspace 2 +bindsym $mod+Shift+3 move container to workspace 3 +bindsym $mod+Shift+4 move container to workspace 4 +bindsym $mod+Shift+5 move container to workspace 5 +bindsym $mod+Shift+6 move container to workspace 6 +bindsym $mod+Shift+7 move container to workspace 7 +bindsym $mod+Shift+8 move container to workspace 8 +bindsym $mod+Shift+9 move container to workspace 9 +bindsym $mod+Shift+0 move container to workspace 10 + +# move to previous or next workspace +bindsym $mod+Tab workspace next +bindsym $mod+Shift+Tab workspace previous + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace +bindsym $mod+Shift+r restart +# exit i3 +bindsym $mod+Shift+e exec $exiti3 + +# resize window (you can also use the mouse for that) +mode "resize" { + bindsym $right resize grow width 20 px or 10 ppt + bindsym $left resize shrink width 10 px or 5 ppt + bindsym $down resize grow height 10 px or 5 ppt + bindsym $up resize shrink height 10 px or 5 ppt + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +mouse_warping none + +# Keyboard layout +bindsym $mod+$alt+k exec setxkbmap fr bepo +bindsym $mod+$alt+Shift+k exec setxkbmap fr +bindsym $mod+$alt+Ctrl+k exec setxkbmap us + +# bindings for MS Natural Ergonomic Keyboard 4000 ############################## +bindsym XF86Launch5 exec emacsclient --create-frame +bindsym $mod+e exec emacsclient --create-frame +bindsym XF86Launch6 exec chromium +bindsym $mod+c exec chromium +bindsym XF86HomePage exec chromium https://labs.phundrak.fr +bindsym XF86Search exec chromium https://www.google.com +bindsym XF86Launch9 exec nemo +bindsym $mod+n exec nemo +bindsym XF86Launch8 $execgnus +bindsym XF86Mail $execgnus +bindsym $mod+m $execgnus +bindsym XF86Launch7 exec discord-canary +bindsym Ctrl+Shift+d exec discord-canary +bindsym XF86AudioMute exec amixer -D pulse set Master 1+ toggle +bindsym Ctrl+$mod+Prior exec amixer -D pulse -q set Master 2%+ unmute +bindsym XF86AudioRaiseVolume exec amixer -D pulse -q set Master 2%+ unmute +bindsym Ctrl+$mod+Next exec amixer -D pulse -q set Master 2%- unmute +bindsym XF86AudioLowerVolume exec amixer -D pulse -q set Master 2%- unmute +bindsym XF86Calculator exec /usr/bin/speedcrunch +bindsym $mod+$alt+c exec /usr/bin/speedcrunch +#bindsym XF86Favourites +#bindsym Help +#bindsym Undo +#bindsym Redo +#bindsym XF86New +#bindsym SunOpen +#bindsym XF86Close +#bindsym XF86Reply +#bindsym XF86MailForward +#bindsym XF86Send +#bindsym XF86Save + +bindsym $mod+F3 exec arandr + +# Brightness keyboard shortcuts +bindsym XF86MonBrightnessUp exec light -A 5 +bindsym XF86MonBrightnessDown exec light -U 5 + +# Wal +bindsym $mod+Ctrl+w exec wal -i ~/.config/Wallpapers -o wal-set + +# Take a screenshot +bindsym --release Print exec --no-startup-id scrot +bindsym --release Ctrl+Print exec --no-startup-id scrot -s +bindsym Shift+Print exec --no-startup-id scrot -d 3 + +# Lock screen +bindsym $mod+l exec i3lock -fol +bindsym $mod+$alt+h exec i3lock -fol && systemctl suspend +bindsym $mod+Shift+h exec i3lock -fol && systemctl hibernate + +# SSH terminals +bindsym $mod+$alt+m exec $term ssh Mila +bindsym $mod+$alt+t exec $term ssh Tilo +bindsym $mod+$alt+n exec $term ssh Naro + +# Utilities +bindsym $mod+Ctrl+h exec $term htop + +# Music shortcuts +bindsym $alt+XF86AudioRaiseVolume exec mpc next +bindsym $mod+Next exec mpc next +bindsym $alt+XF86AudioLowerVolume exec mpc prev +bindsym $mod+Prior exec mpc prev +bindsym XF86AudioPlay exec mpc toggle +bindsym $mod+p exec mpc toggle +bindsym $mod+$alt+p exec mpc stop +bindsym $alt+XF86AudioPlay exec mpc stop +# below, 7 and 8 are the emplacement for `+` and `-` on the bépo layout +# respectively, hence the order +bindsym $mod+$alt+7 exec mpc volume +5 +bindsym $mod+$alt+8 exec mpc volume -5 +bindsym $mod+Shift+n exec $term ncmpcpp -q +bindsym $mod+Shift+v exec $term ncmpcpp -qs visualizer + +################################################################################ +# i3-gaps settings # +################################################################################ + +smart_gaps on +gaps inner 20 +gaps outer -10 +border_radius 10 +popup_during_fullscreen leave_fullscreen +workspace_auto_back_and_forth yes +focus_follows_mouse off + +# Change gaps size +bindsym $mod+g gaps inner current plus 5 +bindsym $mod+Shift+g gaps inner current minus 5 +bindsym $mod+Ctrl+g gaps outer current plus 5 +bindsym $mod+Ctrl+Shift+g gaps outer current minus 5 +bindsym $mod+$alt+g gaps inner all set 20; gaps outer all set -10 + +default_border pixel 0 +smart_borders on + +################################################################################ +# Modules startup # +################################################################################ +exec_always --no-startup-id ~/dotfiles/enable_thouch.sh +exec_always --no-startup-id ~/.config/polybar/launch.sh +exec_always --no-startup-id wal -i "$(< "${HOME}/.cache/wal/wal")" +exec --no-startup-id xss-lock -- i3lock-fancy -t $lockscreen +exec --no-startup-id "xrdb $HOME/.Xresources" +exec --no-startup-id xfce4-power-manager +exec --no-startup-id compton -F --opengl --config ~/.config/compton.conf -e 1 +exec --no-startup-id redshift-gtk +exec --no-startup-id mpd +exec --no-startup-id mpc stop +exec --no-startup-id syndaemon -i 1.0 -t -k +exec --no-startup-id sleep 3; emacs --eval "(server-start)" +exec --no-startup-id mpd_discord_richpresence --no-idle --fork +exec --no-startup-id i3-battery-popup -N -t 2m + + +################################################################################ +# Set colors from Xresources # +################################################################################ + +set_from_resource $fg i3wm.color7 #f0f0f0 +set_from_resource $bg i3wm.color2 #f0f0f0 + +# class border backgr. text indicator child_border +client.focused $bg $bg $fg $bg $bg +client.focused_inactive $bg $bg $fg $bg $bg +client.unfocused $bg $bg $fg $bg $bg +client.urgent $bg $bg $fg $bg $bg +client.placeholder $bg $bg $fg $bg $bg + +# client.background $bg diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf new file mode 100644 index 0000000..ce46dba --- /dev/null +++ b/.config/mpd/mpd.conf @@ -0,0 +1,31 @@ +# Requested files +db_file "~/.config/mpd/database" +log_file "~/.config/mpd/log" + +#Optional files +music_directory "~/Music" +playlist_directory "~/.config/mpd/playlists" +pid_file "~/.config/mpd/pid" +state_file "~/.config/mpd/state" +sticker_file "~/.config/mpd/sticker.sql" +bind_to_address "localhost" + +max_output_buffer_size "16304" + +audio_output { + type "alsa" + name "mpd alsamixer-output" + mixer_type "software" +} + +audio_output { + type "fifo" + name "my_fifo" + path "/tmp/mpd.fifo" + format "44100:16:2" +} + +audio_output { + type "pulse" + name "pulse audio" +} diff --git a/.config/mpd/sticker.sql b/.config/mpd/sticker.sql new file mode 100644 index 0000000000000000000000000000000000000000..61788728f33dbeeaee571a5732acfa08f2d6877a GIT binary patch literal 12288 zcmeI%%}T>S5Ww->R0s%C!9#^!=B9<<#TPKvfQ69Kn20AO>I%`eN=!u$9{P4ZmYb4D zi}fs&|G*~uk<7BcoQ7PC!n`!{@LWu?QjXQG(psH}D5V_RTDCP&jklVCz3Zj^UtLEX z?SJjqRj0kJ+K=`^AbbaXw@6G#bncqE`;^r+I z&rCgN_2a-#0!gF6C=Fx~ods92@}LZ(X5z5?crl*LirkZFHZi^Vo_0H3yTNCf-Hw}_ z_3KWZI`L1#;3tJhl|(N6xPR`)5)BiH(lGQys=RCGtF6{9EDrK(rB~JFw&*7iKmY** v5I_I{1Q0*~0R#|0V1oq~Kjf+ZH~0&4Gz1Vp009ILKmY**5I_I{1eE#)b`eup literal 0 HcmV?d00001 diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf new file mode 100644 index 0000000..6cba71c --- /dev/null +++ b/.config/mpv/input.conf @@ -0,0 +1,182 @@ +# mpv keybindings +# +# Location of user-defined bindings: ~/.config/mpv/input.conf +# +# Lines starting with # are comments. Use SHARP to assign the # key. +# Copy this file and uncomment and edit the bindings you want to change. +# +# List of commands and further details: DOCS/man/input.rst +# List of special keys: --input-keylist +# Keybindings testing mode: mpv --input-test --force-window --idle +# +# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore'). +# +# Strings need to be quoted and escaped: +# KEY show-text "This is a single backslash: \\ and a quote: \" !" +# +# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with +# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal). +# +# The default keybindings are hardcoded into the mpv binary. +# You can disable them completely with: --no-input-default-bindings + +# Developer note: +# On compilation, this file is baked into the mpv binary, and all lines are +# uncommented (unless '#' is followed by a space) - thus this file defines the +# default key bindings. + +# If this is enabled, treat all the following bindings as default. +#default-bindings start + +#MBTN_LEFT ignore # don't do anything +#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen on/off +#MBTN_RIGHT cycle pause # toggle pause on/off + +# Mouse wheels, touchpad or other input devices that have axes +# if the input devices supports precise scrolling it will also scale the +# numeric value accordingly +#WHEEL_UP seek 10 +#WHEEL_DOWN seek -10 +#WHEEL_LEFT add volume -2 +#WHEEL_RIGHT add volume 2 + +## Seek units are in seconds, but note that these are limited by keyframes +#RIGHT seek 5 +#LEFT seek -5 +#UP seek 60 +#DOWN seek -60 +# Do smaller, always exact (non-keyframe-limited), seeks with shift. +# Don't show them on the OSD (no-osd). +#Shift+RIGHT no-osd seek 1 exact +#Shift+LEFT no-osd seek -1 exact +#Shift+UP no-osd seek 5 exact +#Shift+DOWN no-osd seek -5 exact +# Skip to previous/next subtitle (subject to some restrictions; see manpage) +#Ctrl+LEFT no-osd sub-seek -1 +#Ctrl+RIGHT no-osd sub-seek 1 +#PGUP add chapter 1 # skip to next chapter +#PGDWN add chapter -1 # skip to previous chapter +#Shift+PGUP seek 600 +#Shift+PGDWN seek -600 +#[ multiply speed 0.9091 # scale playback speed +#] multiply speed 1.1 +#{ multiply speed 0.5 +#} multiply speed 2.0 +#BS set speed 1.0 # reset speed to normal +#q quit +Q quit-watch-later +#q {encode} quit 4 +#ESC set fullscreen no +#ESC {encode} quit 4 +#p cycle pause # toggle pause/playback mode +#. frame-step # advance one frame and pause +#, frame-back-step # go back by one frame and pause +#SPACE cycle pause +#> playlist-next # skip to next file +#ENTER playlist-next # skip to next file +#< playlist-prev # skip to previous file +#O no-osd cycle-values osd-level 3 1 # cycle through OSD mode +#o show-progress +P show-progress +#z add sub-delay -0.1 # subtract 100 ms delay from subs +#x add sub-delay +0.1 # add +#ctrl++ add audio-delay 0.100 # this changes audio/video sync +#ctrl+- add audio-delay -0.100 +#9 add volume -2 +/ add volume -2 +#0 add volume 2 +* add volume 2 +m cycle mute +#1 add contrast -1 +#2 add contrast 1 +#3 add brightness -1 +#4 add brightness 1 +#5 add gamma -1 +#6 add gamma 1 +#7 add saturation -1 +#8 add saturation 1 +#Alt+0 set window-scale 0.5 +#Alt+1 set window-scale 1.0 +#Alt+2 set window-scale 2.0 +# toggle deinterlacer (automatically inserts or removes required filter) +#d cycle deinterlace +#r add sub-pos -1 # move subtitles up +#t add sub-pos +1 # down +#v cycle sub-visibility +# stretch SSA/ASS subtitles with anamorphic videos to match historical +#V cycle sub-ass-vsfilter-aspect-compat +# switch between applying no style overrides to SSA/ASS subtitles, and +# overriding them almost completely with the normal subtitle style +#u cycle-values sub-ass-override "force" "no" +#j cycle sub # cycle through subtitles +#J cycle sub down # ...backwards +#SHARP cycle audio # switch audio streams +#_ cycle video +#T cycle ontop # toggle video window ontop of other windows +#f cycle fullscreen # toggle fullscreen +#s async screenshot # take a screenshot +#S async screenshot video # ...without subtitles +#Ctrl+s async screenshot window # ...with subtitles and OSD, and scaled +#Alt+s screenshot each-frame # automatically screenshot every frame +#w add panscan -0.1 # zoom out with -panscan 0 -fs +#e add panscan +0.1 # in +# cycle video aspect ratios; "-1" is the container aspect +#A cycle-values video-aspect "16:9" "4:3" "2.35:1" "-1" +#POWER quit +#PLAY cycle pause +#PAUSE cycle pause +#PLAYPAUSE cycle pause +#STOP quit +#FORWARD seek 60 +#REWIND seek -60 +#NEXT playlist-next +#PREV playlist-prev +#VOLUME_UP add volume 2 +#VOLUME_DOWN add volume -2 +#MUTE cycle mute +#CLOSE_WIN quit +#CLOSE_WIN {encode} quit 4 +#E cycle edition # next edition +#l ab-loop # Set/clear A-B loop points +#L cycle-values loop-file "inf" "no" # toggle infinite looping +#ctrl+c quit 4 + +# Apple Remote section +#AR_PLAY cycle pause +#AR_PLAY_HOLD quit +#AR_CENTER cycle pause +#AR_CENTER_HOLD quit +#AR_NEXT seek 10 +#AR_NEXT_HOLD seek 120 +#AR_PREV seek -10 +#AR_PREV_HOLD seek -120 +#AR_MENU show-progress +#AR_MENU_HOLD cycle mute +#AR_VUP add volume 2 +#AR_VUP_HOLD add chapter 1 +#AR_VDOWN add volume -2 +#AR_VDOWN_HOLD add chapter -1 + +# +# Legacy bindings (may or may not be removed in the future) +# +#! add chapter -1 # skip to previous chapter +#@ add chapter 1 # next + +# +# Not assigned by default +# (not an exhaustive list of unbound commands) +# + +# ? add sub-scale +0.1 # increase subtitle font size +# ? add sub-scale -0.1 # decrease subtitle font size +# ? sub-step -1 # immediately display next subtitle +# ? sub-step +1 # previous +# ? cycle angle # switch DVD/Bluray angle +# ? add balance -0.1 # adjust audio balance in favor of left +# ? add balance 0.1 # right +# ? cycle sub-forced-only # toggle DVD forced subs +# ? cycle program # cycle transport stream programs +# ? stop # stop playback (quit or enter idle mode) +I vf toggle format=yuv420p,vapoursynth=~~/motioninterpolation.vpy:4:4 +M vf toggle hflip diff --git a/.config/mpv/motioninterpolation.vpy b/.config/mpv/motioninterpolation.vpy new file mode 100644 index 0000000..26af94b --- /dev/null +++ b/.config/mpv/motioninterpolation.vpy @@ -0,0 +1,74 @@ +# vim: set ft=python: + +# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645 +# source: https://github.com/mpv-player/mpv/issues/2149 +# source: https://github.com/mpv-player/mpv/issues/566 +# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy + +import vapoursynth + +core = vapoursynth.get_core() +# ref: http://avisynth.org.ru/mvtools/mvtools2.html#functions +# default is 400, less means interpolation will only happen when it will work well +ignore_threshold=140 +# if n% of blocks change more than threshold then don't interpolate at all (default is 51%) +scene_change_percentage=15 + +dst_fps = display_fps +# Interpolating to fps higher than 60 is too CPU-expensive, smoothmotion can handle the rest. +# while (dst_fps > 60): +# dst_fps /= 2 + +if "video_in" in globals(): + # realtime + clip = video_in + # Needed because clip FPS is missing + src_fps_num = int(container_fps * 1e8) + src_fps_den = int(1e8) + clip = core.std.AssumeFPS(clip, fpsnum = src_fps_num, fpsden = src_fps_den) +else: + # run with vspipe + clip = core.ffms2.Source(source=in_filename) + dst_fps=float(dst_fps) + +# resolution in megapixels. 1080p ≈ 2MP, 720p ≈ 1MP +mpix = clip.width * clip.height / 1000000 + +# Skip interpolation for >1080p or 60 Hz content due to performance +if not (mpix > 2.5 or clip.fps_num/clip.fps_den > 59): + analParams = { + 'overlap': 0, + 'search': 3, + 'truemotion': True, + #'chrome': True, + #'blksize':16, + #'searchparam':1 + } + blockParams = { + 'thscd1': ignore_threshold, + 'thscd2': int(scene_change_percentage*255/100), + 'mode': 3, + } + + if mpix > 1.5: + # can't handle these on Full HD with Intel i5-2500k + # see the description of these parameters in http://avisynth.org.ru/mvtools/mvtools2.html#functions + analParams['search'] = 0 + blockParams['mode'] = 0 + quality = 'low' + else: + quality = 'high' + + + dst_fps_num = int(dst_fps * 1e4) + dst_fps_den = int(1e4) + print("Reflowing from {} fps to {} fps (quality={})".format(clip.fps_num/clip.fps_den,dst_fps_num/dst_fps_den,quality)) + + sup = core.mv.Super(clip, pel=2) + bvec = core.mv.Analyse(sup, isb=True, **analParams) + fvec = core.mv.Analyse(sup, isb=False, **analParams) + clip = core.mv.BlockFPS(clip, sup, bvec, fvec, + num=dst_fps_num, den=dst_fps_den, + **blockParams) + +clip.set_output() diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf new file mode 100644 index 0000000..ce7c374 --- /dev/null +++ b/.config/mpv/mpv.conf @@ -0,0 +1,153 @@ +# +# Example mpv configuration file +# +# Warning: +# +# The commented example options usually do _not_ set the default values. Call +# mpv with --list-options to see the default values for most options. There is +# no builtin or example mpv.conf with all the defaults. +# +# +# Configuration files are read system-wide from /usr/local/etc/mpv.conf +# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override +# system-wide settings, all of which are overridden by the command line. +# +# Configuration file settings and the command line options use the same +# underlying mechanisms. Most options can be put into the configuration file +# by dropping the preceding '--'. See the man page for a complete list of +# omeone explain to me how est of at least 10 milliptions. +# +# Lines starting with '#' are comments and are ignored. +# +# See the CONFIGURATION FILES section in the man page +# for a detailed description of the syntax. +# +# Profiles should be placed at the bottom of the configuration file to ensure +# that settings wanted as defaults are not restricted to specific profiles. + +input-ipc-server=/tmp/mpvsocket + +################## +# video settings # +################## + +# Start in fullscreen mode by default. +#fs=yes + +# force starting with centered window +geometry=50%:50% + +# don't allow a new window to have a size larger than 90% of the screen size +autofit-larger=90%x90% + +# Do not close the window on exit. +keep-open=no + +# Do not wait with showing the video window until it has loaded. (This will +# resize the window once video is loaded. Also always shows a window with +# audio.) +force-window=immediate + +# Disable the On Screen Controller (OSC). +osc=yes + +# Keep the player window on top of all other windows. +#ontop=yes + +# Specify high quality video rendering preset (for OpenGL VO only) +# Can cause performance problems with some drivers and GPUs. +# profile=opengl-hq +# scale=ewa_lanczossharp +# cscale=ewa_lanczossharp +# video-sync=display-resample +# interpolation +# tscale=oversample + +# Force video to lock on the display's refresh rate, and change video and audio +# speed to some degree to ensure synchronous playback - can cause problems +# with some drivers and desktop environments. +video-sync=display-resample + +# Enable hardware decoding if available. Often, this does not work with all +# video outputs, but should work well with default settings on most systems. +# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs +# may or may not help. +hwdec=auto-copy + +################## +# audio settings # +################## + +# Specify default audio device. You can list devices with: --audio-device=help +# The option takes the device string (the stuff between the '...'). +#audio-device=alsa/default + +# Do not filter audio to keep pitch when changing playback speed. +#audio-pitch-correction=no + +# Output 5.1 audio natively, and upmix/downmix audio with a different format. +#audio-channels=5.1 +# Disable any automatic remix, _if_ the audio output accepts the audio format. +# of the currently played file. See caveats mentioned in the manpage. +# (The default is "auto-safe", see manpage.) +#audio-channels=auto + +################## +# other settings # +################## + +# Pretend to be a web browser. Might fix playback with some streaming sites, +# but also will break with shoutcast streams. +#user-agent="Mozilla/5.0" + +# cache settings +# +# Use 150MB input cache by default. The cache is enabled for network streams only. +#cache-default=153600 +# +# Use 150MB input cache for everything, even local files. +#cache=153600 +# +# Disable the behavior that the player will pause if the cache goes below a +# certain fill size. +#cache-pause=no +# +# Read ahead about 5 seconds of audio and video packets. +#demuxer-readahead-secs=5.0 +# +# Raise readahead from demuxer-readahead-secs to this value if a cache is active. +#cache-secs=50.0 + +# Display English subtitles if available. +slang=en,fr + +# Play English audio if available, fall back to French otherwise. +alang=en,fr + +# Change subtitle encoding. For Arabic subtitles use 'cp1256'. +# If the file seems to be valid UTF-8, prefer UTF-8. +# (You can add '+' in front of the codepage to force it.) +sub-codepage=UTF-8 + +# You can also include other configuration files. +#include=/path/to/the/file/you/want/to/include + +############ +# Profiles # +############ + +# The options declared as part of profiles override global default settings, +# but only take effect when the profile is active. + +# The following profile can be enabled on the command line with: --profile=eye-cancer + +[eye-cancer] +sharpen=5 + +[qualitatif] +profile=opengl-hq +scale=ewa_lanczossharp +cscale=ewa_lanczossharp +video-sync=display-resample +interpolation +tscale=oversamplevf=format=yuv420p,vapoursynth=~~/motioninterpolation.vpy:4:4 diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf new file mode 100644 index 0000000..f76c2ea --- /dev/null +++ b/.config/neofetch/config.conf @@ -0,0 +1,711 @@ +# Neofetch config file +# https://github.com/dylanaraps/neofetch + + +# See this wiki page for more info: +# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info +print_info() { + info line_break + info title + info line_break + info cols + info line_break + + info "OS" distro + info "Kernel" kernel + info "Uptime" uptime + info "Packages" packages + info "Shell" shell + info "DE" de + info "WM" wm + info "Terminal" term + info "Terminal Font" term_font + info "CPU" cpu + info "GPU" gpu + info "Memory" memory + info line_break + info "Song" song + +} + + +# Kernel + + +# Shorten the output of the kernel function. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --kernel_shorthand +# Supports: Everything except *BSDs (except PacBSD and PC-BSD) +# +# Example: +# on: '4.8.9-1-ARCH' +# off: 'Linux 4.8.9-1-ARCH' +kernel_shorthand="on" + + +# Distro + + +# Shorten the output of the distro function +# +# Default: 'off' +# Values: 'on', 'off', 'tiny' +# Flag: --distro_shorthand +# Supports: Everything except Windows and Haiku +distro_shorthand="on" + +# Show/Hide OS Architecture. +# Show 'x86_64', 'x86' and etc in 'Distro:' output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --os_arch +# +# Example: +# on: 'Arch Linux x86_64' +# off: 'Arch Linux' +os_arch="off" + + +# Uptime + + +# Shorten the output of the uptime function +# +# Default: 'on' +# Values: 'on', 'off', 'tiny' +# Flag: --uptime_shorthand +# +# Example: +# on: '2 days, 10 hours, 3 mins' +# off: '2 days, 10 hours, 3 minutes' +# tiny: '2d 10h 3m' +uptime_shorthand="on" + + +# Shell + + +# Show the path to $SHELL +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --shell_path +# +# Example: +# on: '/bin/bash' +# off: 'bash' +shell_path="off" + +# Show $SHELL version +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --shell_version +# +# Example: +# on: 'bash 4.4.5' +# off: 'bash' +shell_version="off" + + +# CPU + + +# CPU speed type +# +# Default: 'bios_limit' +# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. +# Flag: --speed_type +# Supports: Linux with 'cpufreq' +# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. +speed_type="bios_limit" + +# CPU speed shorthand +# +# Default: 'off' +# Values: 'on', 'off'. +# Flag: --speed_shorthand. +# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz +# +# Example: +# on: 'i7-6500U (4) @ 3.1GHz' +# off: 'i7-6500U (4) @ 3.100GHz' +speed_shorthand="on" + +# Enable/Disable CPU brand in output. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_brand +# +# Example: +# on: 'Intel i7-6500U' +# off: 'i7-6500U (4)' +cpu_brand="off" + +# CPU Speed +# Hide/Show CPU speed. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --cpu_speed +# +# Example: +# on: 'Intel i7-6500U (4) @ 3.1GHz' +# off: 'Intel i7-6500U (4)' +cpu_speed="off" + +# CPU Cores +# Display CPU cores in output +# +# Default: 'logical' +# Values: 'logical', 'physical', 'off' +# Flag: --cpu_cores +# Support: 'physical' doesn't work on BSD. +# +# Example: +# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) +# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) +# off: 'Intel i7-6500U @ 3.1GHz' +cpu_cores="off" + +# CPU Temperature +# Hide/Show CPU temperature. +# Note the temperature is added to the regular CPU function. +# +# Default: 'off' +# Values: 'C', 'F', 'off' +# Flag: --cpu_temp +# Supports: Linux, BSD +# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable +# coretemp kernel module. This only supports newer Intel processors. +# +# Example: +# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' +# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' +# off: 'Intel i7-6500U (4) @ 3.1GHz' +cpu_temp="off" + + +# GPU + + +# Enable/Disable GPU Brand +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gpu_brand +# +# Example: +# on: 'AMD HD 7950' +# off: 'HD 7950' +gpu_brand="off" + +# Which GPU to display +# +# Default: 'all' +# Values: 'all', 'dedicated', 'integrated' +# Flag: --gpu_type +# Supports: Linux +# +# Example: +# all: +# GPU1: AMD HD 7950 +# GPU2: Intel Integrated Graphics +# +# dedicated: +# GPU1: AMD HD 7950 +# +# integrated: +# GPU1: Intel Integrated Graphics +gpu_type="all" + + +# Resolution + + +# Display refresh rate next to each monitor +# Default: 'off' +# Values: 'on', 'off' +# Flag: --refresh_rate +# Supports: Doesn't work on Windows. +# +# Example: +# on: '1920x1080 @ 60Hz' +# off: '1920x1080' +refresh_rate="off" + + +# Gtk Theme / Icons / Font + + +# Shorten output of GTK Theme / Icons / Font +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --gtk_shorthand +# +# Example: +# on: 'Numix, Adwaita' +# off: 'Numix [GTK2], Adwaita [GTK3]' +gtk_shorthand="on" + + +# Enable/Disable gtk2 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk2 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Adwaita [GTK3]' +gtk2="off" + +# Enable/Disable gtk3 Theme / Icons / Font +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --gtk3 +# +# Example: +# on: 'Numix [GTK2], Adwaita [GTK3]' +# off: 'Numix [GTK2]' +gtk3="off" + + +# IP Address + + +# Website to ping for the public IP +# +# Default: 'http://ident.me' +# Values: 'url' +# Flag: --ip_host +public_ip_host="http://ident.me" + + +# Disk + + +# Which disks to display. +# The values can be any /dev/sdXX, mount point or directory. +# NOTE: By default we only show the disk info for '/'. +# +# Default: '/' +# Values: '/', '/dev/sdXX', '/path/to/drive'. +# Flag: --disk_show +# +# Example: +# disk_show=('/' '/dev/sdb1'): +# 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 823G / 893G (93%)' +# +# disk_show=('/'): +# 'Disk (/): 74G / 118G (66%)' +# +disk_show=('/') + +# Disk subtitle. +# What to append to the Disk subtitle. +# +# Default: 'mount' +# Values: 'mount', 'name', 'dir' +# Flag: --disk_subtitle +# +# Example: +# name: 'Disk (/dev/sda1): 74G / 118G (66%)' +# 'Disk (/dev/sdb2): 74G / 118G (66%)' +# +# mount: 'Disk (/): 74G / 118G (66%)' +# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' +# 'Disk (/mnt/Videos): 74G / 118G (66%)' +# +# dir: 'Disk (/): 74G / 118G (66%)' +# 'Disk (Local Disk): 74G / 118G (66%)' +# 'Disk (Videos): 74G / 118G (66%)' +disk_subtitle="mount" + + +# Song + + +# Print the Artist and Title on separate lines +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --song_shorthand +# +# Example: +# on: 'Artist: The Fratellis' +# 'Song: Chelsea Dagger' +# +# off: 'Song: The Fratellis - Chelsea Dagger' +song_shorthand="on" + + +# Install Date + + +# Whether to show the time in the output +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --install_time +# +# Example: +# on: 'Thu 14 Apr 2016 11:50 PM' +# off: 'Thu 14 Apr 2016' +install_time="off" + +# Set time format in the output +# +# Default: '24h' +# Values: '12h', '24h' +# Flag: --install_time_format +# +# Example: +# 12h: 'Thu 14 Apr 2016 11:50 PM' +# 24h: 'Thu 14 Apr 2016 23:50' +install_time_format="24h" + + +# Text Colors + + +# Text Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --colors +# +# Each number represents a different part of the text in +# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' +# +# Example: +# colors=(distro) - Text is colored based on Distro colors. +# colors=(4 6 1 8 8 6) - Text is colored in the order above. +colors=(distro) + + +# Text Options + + +# Toggle bold text +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bold +bold="on" + +# Enable/Disable Underline +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --underline +underline_enabled="on" + +# Underline character +# +# Default: '-' +# Values: 'string' +# Flag: --underline_char +underline_char="-" + + +# Color Blocks + + +# Color block range +# The range of colors to print. +# +# Default: '0', '7' +# Values: 'num' +# Flag: --block_range +# +# Example: +# +# Display colors 0-7 in the blocks. (8 colors) +# neofetch --block_range 0 7 +# +# Display colors 0-15 in the blocks. (16 colors) +# neofetch --block_range 0 15 +block_range=(0 7) + +# Toggle color blocks +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --color_blocks +color_blocks="on" + +# Color block width in spaces +# +# Default: '3' +# Values: 'num' +# Flag: --block_width +block_width=3 + +# Color block height in lines +# +# Default: '1' +# Values: 'num' +# Flag: --block_height +block_height=1 + + +# Progress Bars + + +# Bar characters +# +# Default: '-', '=' +# Values: 'string', 'string' +# Flag: --bar_char +# +# Example: +# neofetch --bar_char 'elapsed' 'total' +# neofetch --bar_char '-' '=' +bar_char_elapsed="=" +bar_char_total="-" + +# Toggle Bar border +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --bar_border +bar_border="on" + +# Progress bar length in spaces +# Number of chars long to make the progress bars. +# +# Default: '15' +# Values: 'num' +# Flag: --bar_length +bar_length=15 + +# Progress bar colors +# When set to distro, uses your distro's logo colors. +# +# Default: 'distro', 'distro' +# Values: 'distro', 'num' +# Flag: --bar_colors +# +# Example: +# neofetch --bar_colors 3 4 +# neofetch --bar_colors distro 5 +bar_color_elapsed="distro" +bar_color_total="distro" + + +# Info display +# Display a bar with the info. +# +# Default: 'off' +# Values: 'bar', 'infobar', 'barinfo', 'off' +# Flags: --cpu_display +# --memory_display +# --battery_display +# --disk_display +# +# Example: +# bar: '[---=======]' +# infobar: 'info [---=======]' +# barinfo: '[---=======] info' +# off: 'info' +cpu_display="off" +memory_display="off" +battery_display="off" +disk_display="off" + + +# Backend Settings + + +# Image backend. +# +# Default: 'ascii' +# Values: 'ascii', 'caca', 'catimg', 'jp2a', 'iterm2', 'off', 'tycat', 'w3m' +# Flag: --backend +image_backend="ascii" + +# Image Source +# +# Which image or ascii file to display. +# +# Default: 'auto' +# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' +# Flag: --source +# +# NOTE: 'auto' will pick the best image source for whatever image backend is used. +# In ascii mode, distro ascii art will be used and in an image mode, your +# wallpaper will be used. +image_source="auto" + + +# Ascii Options + + +# Ascii distro +# Which distro's ascii art to display. +# +# Default: 'auto' +# Values: 'auto', 'distro_name' +# Flag: --ascii_distro +# +# NOTE: Arch and Ubuntu have 'old' logo variants. +# Change this to 'arch_old' or 'ubuntu_old' to use the old logos. +# NOTE: Ubuntu has flavor variants. +# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors. +# NOTE: Arch, Crux and Gentoo have a smaller logo variant. +# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos. +ascii_distro="auto" + +# Ascii Colors +# +# Default: 'distro' +# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' +# Flag: --ascii_colors +# +# Example: +# ascii_colors=(distro) - Ascii is colored based on Distro colors. +# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. +ascii_colors=(distro) + +# Bold ascii logo +# Whether or not to bold the ascii logo. +# +# Default: 'on' +# Values: 'on', 'off' +# Flag: --ascii_bold +ascii_bold="on" + + +# Image Options + + +# Image loop +# Setting this to on will make neofetch redraw the image constantly until +# Ctrl+C is pressed. This fixes display issues in some terminal emulators. +# +# Default: 'off' +# Values: 'on', 'off' +# Flag: --loop +image_loop="off" + +# Thumbnail directory +# +# Default: '~/.cache/thumbnails/neofetch' +# Values: 'dir' +thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" + +# Crop mode +# +# Default: 'normal' +# Values: 'normal', 'fit', 'fill' +# Flag: --crop_mode +# +# See this wiki page to learn about the fit and fill options. +# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F +crop_mode="fit" + +# Crop offset +# Note: Only affects 'normal' crop mode. +# +# Default: 'center' +# Values: 'northwest', 'north', 'northeast', 'west', 'center' +# 'east', 'southwest', 'south', 'southeast' +# Flag: --crop_offset +crop_offset="center" + +# Image size +# The image is half the terminal width by default. +# +# Default: 'auto' +# Values: 'auto', '00px', '00%', 'none' +# Flags: --image_size +# --size +image_size="auto" + +# Ggap between image and text +# +# Default: '3' +# Values: 'num', '-num' +# Flag: --gap +gap=3 + +# Image offsets +# Only works with the w3m backend. +# +# Default: '0' +# Values: 'px' +# Flags: --xoffset +# --yoffset +yoffset=0 +xoffset=0 + +# Image background color +# Only works with the w3m backend. +# +# Default: '' +# Values: 'color', 'blue' +# Flag: --bg_color +background_color= + + +# Scrot Options + + +# Whether or not to always take a screenshot +# You can manually take a screenshot with "--scrot" or "-s" +# +# Default: 'off' +# Values: 'on', 'off' +# Flags: --scrot +# -s +scrot="off" + +# Screenshot Program +# Neofetch will automatically use whatever screenshot tool +# is installed on your system. +# +# If 'neofetch -v' says that it couldn't find a screenshot +# tool or you're using a custom tool then you can change +# the option below to a custom command. +# +# Default: 'auto' +# Values: 'auto' 'cmd -flags' +# Flag: --scrot_cmd +scrot_cmd="auto" + +# Screenshot Filename +# What to name the screenshots +# +# Default: 'neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png' +# Values: 'string' +# Flag: --scrot_name +scrot_name="neofetch-$(date +%F-%I-%M-%S-${RANDOM}).png" + +# Image upload host +# Where to upload the image. +# +# Default: 'teknik' +# Values: 'imgur', 'teknik' +# Flag: --image_host +# +# NOTE: If you'd like another image host to be added to Neofetch. +# Open an issue on github. +image_host="teknik" + + +# Misc Options + + +# Config version. +# +# NOTE: Don't change this value, neofetch reads this to determine +# how to handle backwards compatibility. +config_version="3.2.1-git" diff --git a/.config/polybar/config b/.config/polybar/config new file mode 100644 index 0000000..f6dcd52 --- /dev/null +++ b/.config/polybar/config @@ -0,0 +1,534 @@ +;===================================================== +; +; To learn more about how to configure Polybar +; go to https://github.com/jaagr/polybar +; +; The README contains alot of information +; +;===================================================== + +[colors] +background = ${xrdb:color1:#50000000} +background-alt = ${xrdb:color2:#444} +foreground = ${xrdb:color7:#dfdfdf} +foreground-alt = ${xrdb:color6:#555} +primary = #ffb52a +secondary = #e60053 +alert = #bd2c40 + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[bar/bottom] +monitor= ${env:MONITOR} + +bottom = true +width = 100% +height = 22 +radius = 0.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 0 +border-color = #00000000 + +padding-left = 2 +padding-right = 4 + +locale=ja_JP.UTF-8 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=8 +font-1 = unifont:fontformat=truetype:size=6:antialias=false +font-2 = "Siji:pixelsize=8" +font-3 = "IPAMincho:style=regular:pixelsize=8" + +modules-left = powermenu mpd +modules-center = +modules-right = filesystem wlan eth volume backlight-acpi cpu memory temperature custom-battery + +tray-position = +tray-padding = 0 +tray-detached = false +tray-maxsize = 15 +tray-transparent = false +tray-background = ${colors.background} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[bar/top] +monitor= ${env:MONITOR} + +bottom = false +width = 100% +height = 22 +radius = 10.0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #f00 + +border-size = 5 +border-color = #00000000 + +padding-left = 2 +padding-right = 4 + +locale=ja_JP.UTF-8 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = fixed:pixelsize=8 +font-1 = unifont:fontformat=truetype:size=6:antialias=false +font-2 = "Siji:pixelsize=8" +font-3 = "IPAMincho:style=regular:pixelsize=8" + +modules-left = i3 +modules-center = xwindow +modules-right = date + +tray-position = +tray-padding = 0 +tray-detached = false +tray-maxsize = 15 +tray-transparent = false +tray-background = ${colors.background} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/custom-battery] +type = custom/script +exec = polybar-ab -polybar -thr 10 +tail = true + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/xwindow] +type = internal/xwindow + +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.secondary} +format-underline = ${colors.secondary} +format-padding = 1 + +label = %title% +label-maxlen = 70 + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +format = +format-prefix = " " +format-prefix-foreground = ${colors.foreground} +format-prefix-underline = ${colors.secondary} +format-underline = ${colors.secondary} +format-padding = 1 + +label-layout = %layout% %number% +label-layout-padding = 1 +label-layout-underline = ${colors.secondary} + +label-indicator = %name% +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/filesystem] +type = internal/fs +interval = 20 + +mount-0 = / +mount-1 = /home + +format-mounted = +label-mounted-underline = ${colors.secondary} +format-unmounted = + +label-mounted =  %mountpoint%: %used%/%total% (%percentage_used%%) +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} +label-mounted-foreground = ${colors.foreground} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/i3] +type = internal/i3 +index-sort = true +enable-scroll = false +wrapping-scroll = false +strip-wsnumbers = false +pin-workspaces = true +fuzzy-match = true + +label-focused = %icon% +label-focused-background = ${colors.background-alt} +label-focused-underline = ${xrdb:color8:#ffff00} +label-focused-padding = 2 + +label-unfocused = %icon% +label-unfocused-padding = 2 + +label-visible = %icon% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +label-urgent = %icon% +label-urgent-background = ${xrdb:color0:#bd2c40} +label-urgent-padding = 2 + +ws-icon-0 = 1;一 +ws-icon-1 = 2;二 +ws-icon-2 = 3;三 +ws-icon-3 = 4;四 +ws-icon-4 = 5;五 +ws-icon-5 = 6;六 +ws-icon-6 = 7;七 +ws-icon-7 = 8;八 +ws-icon-8 = 9;九 +ws-icon-9 = 0;十 +ws-icon-default = %index% +format = + +label-mode = %mode% +label-mode-padding = 2 +label-mode-foreground = #000 +label-mode-background = ${colors.background-alt} + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/mpd] +type = internal/mpd + +label-song =  %title% - %artist% +label-song-maxlen = 50 +label-song-ellipsis = true + +label-offline =  mpd is offline +format-online = +format-offline = + +icon-prev =  +icon-stop =  +icon-play =  +icon-pause =  +icon-next =  + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/backlight-acpi] +inherit = module/xbacklight +type = internal/backlight +card = intel_backlight + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[module/cpu] +type = internal/cpu +interval = 2 +format =